Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-qg authored May 1, 2024
1 parent e771f26 commit 6e94ba7
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,16 @@ jobs:
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [e2e-tests]
needs: [docker-push-userservice,docker-push-authservice,docker-push-gatewayservice,docker-push-webapp, docker-push-questiongeneratorservice, docker-push-storequestionservice, docker-push-userstatsservice, docker-push-wikidataextractorservice, docker-push-gameservice, docker-push-apisgatewayservice]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
- name: Deploy over SSH
uses: fifsky/ssh-action@master
with:
name: arquisoft/wiq_es6c/apisgatewayservice
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: apisgatewayservice
platforms: linux/arm64
host: ${{ secrets.DEPLOY_HOST }}
user: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_KEY }}
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_es6c/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es6c/master/.env -O .env
docker compose --profile prod down
docker compose --profile prod up -d --pull always

0 comments on commit 6e94ba7

Please sign in to comment.