Skip to content

Commit

Permalink
Passing env variable to staging.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshibbotson committed May 12, 2024
1 parent db0da6a commit df7cbdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
run: rm -rf ~/.ssh

0 comments on commit df7cbdf

Please sign in to comment.