diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b35560e..5f1d3d5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,28 +39,33 @@ jobs: - run: npm --prefix webapp install - run: npm --prefix webapp run build - run: npm --prefix webapp run test:e2e + 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 || 'localhost' }}:8000 - - - with: - name: arquisoft/wiq_es04c/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: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - registry: ghcr.io - workdir: webapp - buildargs: API_URI + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: ./webapp + push: true + tags: ghcr.io/arquisoft/wiq_es04c/webapp:latest + build-args: API_URI=http://${{ secrets.DEPLOY_HOST || 'localhost' }}:8000 + no-cache: true + docker-push-authservice: name: Push auth service Docker Image to GitHub Packages runs-on: ubuntu-latest