From df7cbdfa41ffb26ee94097751e040bc0e2268d7c Mon Sep 17 00:00:00 2001 From: Josh Ibbotson Date: Sun, 12 May 2024 16:58:16 +0100 Subject: [PATCH] Passing env variable to staging.yml --- .github/workflows/staging.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 5f7d08d..76731c1 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -36,7 +36,7 @@ jobs: - name: Build Docker image ๐Ÿณ run: | - docker build -f docker/staging/Dockerfile . --tag ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_STAGE_IMAGE_NAME }}:latest + docker build -f docker/staging/Dockerfile . --tag ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_STAGE_IMAGE_NAME }}:latest --build-arg APP_SERVER_URL=${{ secrets.APP_SERVER_URL }} - name: Publish Docker image ๐Ÿ“ฆ run: | @@ -58,4 +58,4 @@ jobs: - name: Pull and run container ๐Ÿƒ๏ธ run: ssh ${{ secrets.USERNAME }}@${{ secrets.HOST }} "cd stage-minddaily && docker image prune -f && docker image prune -a && docker compose pull && docker compose up -d && exit" - name: Cleanup ๐Ÿงน - run: rm -rf ~/.ssh \ No newline at end of file + run: rm -rf ~/.ssh