Skip to content

Commit

Permalink
Fix CI env file
Browse files Browse the repository at this point in the history
  • Loading branch information
phnagy committed Jul 30, 2024
1 parent 8eefead commit 5a81f99
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: ${{ inputs.environment }}
url: 'https://${{ vars.VM_HOST }}'
url: "https://${{ vars.VM_HOST }}"
steps:
- name: SSH to VM and Execute Docker-Compose Down
uses: appleboy/ssh-action@v1.0.3
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}
source: "./docker-compose.prod.yml"
target: /home/${{ vars.VM_USERNAME }}/tease

- name: SSH to VM and create .tease-env.prod file
uses: appleboy/ssh-action@v1.0.3
with:
Expand All @@ -58,9 +58,8 @@ jobs:
proxy_key: ${{ secrets.DEPLOYMENT_GATEWAY_SSH_KEY }}
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}
script: |
cd tease
touch .tease-env.prod
echo "TEASE_IMAGE_TAG=${{ inputs.tease_image_tag }}" >> .tease-env.prod
touch tease/.tease-env.prod
echo "TEASE_IMAGE_TAG=${{ inputs.tease_image_tag }}" >> tease/.tease-env.prod
- name: SSH to VM and Execute Docker-Compose Up
uses: appleboy/ssh-action@v1.0.3
Expand All @@ -73,4 +72,4 @@ jobs:
proxy_key: ${{ secrets.DEPLOYMENT_GATEWAY_SSH_KEY }}
proxy_port: ${{ vars.DEPLOYMENT_GATEWAY_PORT }}
script: |
docker compose -f tease/docker-compose.prod.yml --env-file=.env.prod --env-file=tease/tease-env.prod .up --pull=always -d
docker compose -f tease/docker-compose.prod.yml --env-file=.env.prod --env-file=tease/.tease-env.prod .up --pull=always -d

0 comments on commit 5a81f99

Please sign in to comment.