From f602768e2d0ae64e06bdc0363f0faf91c4e602ea Mon Sep 17 00:00:00 2001 From: r-freeman Date: Thu, 22 Aug 2024 17:18:05 +0100 Subject: [PATCH] dockerisation --- .gitea/workflows/publish.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index a0441cb..0be356d 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -19,6 +19,11 @@ jobs: env: 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 uses: docker/login-action@v3 with: @@ -51,10 +56,5 @@ jobs: - name: Pull the Docker image 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 - run: sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:7777:3000 rfreeman420/portfolio:v1 \ No newline at end of file + run: sudo docker run -d --restart unless-stopped --env-file ./.env --name portfolio -p ${{vars.TAILSCALE_IP}}:3000:3000 rfreeman420/portfolio:v1 \ No newline at end of file