Skip to content

Commit

Permalink
agregar que webapp no guarde cache para que se cargue bien el secreto
Browse files Browse the repository at this point in the history
  • Loading branch information
bidof committed Feb 24, 2024
1 parent e3afc27 commit 791a596
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 791a596

Please sign in to comment.