From 36981abc0e6a5b0d0c72a0a20b198062ae78a6fc Mon Sep 17 00:00:00 2001 From: "Dario G. Mori" Date: Fri, 8 Mar 2024 12:17:25 +0100 Subject: [PATCH] chore: webapp added github actions --- .github/workflows/release.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28531a23..6208b027 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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