Skip to content

Commit

Permalink
chore: webapp added github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dariogmori committed Mar 8, 2024
1 parent c81dd57 commit 36981ab
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,31 @@ jobs:
registry: ghcr.io
workdir: api
buildargs: API_URI
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: [ e2e-tests ]
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:8000
teamname: wiq_en2b
with:
name: arquisoft/wiq_en2b/webapp
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
workdir: webapp
buildargs: API_URI
deploy:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-api]
needs: [docker-push-api, docker-push-webapp]
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
Expand Down

0 comments on commit 36981ab

Please sign in to comment.