dockerisation
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 41s

This commit is contained in:
r-freeman 2024-08-22 17:18:05 +01:00
parent a59af8227e
commit f602768e2d

View File

@ -19,6 +19,11 @@ jobs:
env: env:
NODE_OPTIONS: --max_old_space_size=4096 NODE_OPTIONS: --max_old_space_size=4096
- name: Decrypt secrets
run: ./decrypt_secrets.sh
env:
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
@ -51,10 +56,5 @@ jobs:
- name: Pull the Docker image - name: Pull the Docker image
run: sudo docker pull rfreeman420/portfolio:v1 run: sudo docker pull rfreeman420/portfolio:v1
- name: Decrypt secrets
run: ./decrypt_secrets.sh
env:
SECRET_PASSPHRASE: ${{ secrets.SECRET_PASSPHRASE }}
- name: Run the Docker container - name: Run the Docker container
run: sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:7777:3000 rfreeman420/portfolio:v1 run: sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:3000:3000 rfreeman420/portfolio:v1