Skip to content

Commit

Permalink
Merge pull request #96 from Arquisoft/develop
Browse files Browse the repository at this point in the history
chore: webapp added github actions
  • Loading branch information
dariogmori authored Mar 8, 2024
2 parents 9b5ddce + 36981ab commit 1de1b2f
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 1de1b2f

Please sign in to comment.