From 791a5964a86510ff6f8169cf230fe4241f75437e Mon Sep 17 00:00:00 2001 From: bidof Date: Sat, 24 Feb 2024 13:13:32 +0100 Subject: [PATCH] agregar que webapp no guarde cache para que se cargue bien el secreto --- .github/workflows/release.yml | 43 +++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 19 deletions(-) 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