Skip to content

Commit

Permalink
Change to declare env with the secret
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Mar 2, 2024
1 parent 239ca83 commit 18927fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ jobs:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-userservice,docker-push-authservice,docker-push-gatewayservice,docker-push-webapp]
env:
IP_HOST: ${{ secrets.DEPLOY_HOST }}
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
Expand All @@ -126,6 +128,6 @@ jobs:
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_0/master/.env -O .env
export DOCKER_HOST_IP='${{ secrets.DEPLOY_HOST }}'
export DOCKER_HOST_IP=$IP_HOST
docker compose --profile prod down
docker compose --profile prod up -d

0 comments on commit 18927fa

Please sign in to comment.