From 25ce152b678738bdd7cc6d824a2f101901ebaf78 Mon Sep 17 00:00:00 2001 From: Claudemir Todo Bom Date: Wed, 15 May 2024 10:04:01 -0300 Subject: [PATCH] =?UTF-8?q?=C3=B4=20coisa=20dif=C3=ADcil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docker.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index e3365e21..73758c78 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -33,7 +33,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} - password: ${{ secrets.PACKAGE_WRITE_TOKEN }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Docker meta Backend id: meta_backend @@ -41,7 +41,7 @@ jobs: with: # list of Docker images to use as base name for tags images: | - ghcr.io/ticktez-oss/ticketz-backend + ${{ env.REGISTRY }}/${{ env.IMAGE_BACKEND }} # Docker tags based on the following events/attributes tags: | type=ref,event=branch @@ -56,7 +56,7 @@ jobs: with: # list of Docker images to use as base name for tags images: | - ghcr.io/ticktez-oss/ticketz-frontend + ${{ env.REGISTRY }}/${{ env.IMAGE_BACKEND }} # Docker tags based on the following events/attributes tags: | type=ref,event=branch @@ -72,8 +72,9 @@ jobs: context: ./backend push: true platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta_backend.outputs.tags }} - labels: ${{ steps.meta_backend.outputs.labels }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_BACKEND }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_BACKEND }}:${{ github.sha }} - name: Build and push frontend Docker image id: frontend @@ -82,5 +83,6 @@ jobs: context: ./frontend push: true platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta_frontend.outputs.tags }} - labels: ${{ steps.meta_frontend.outputs.labels }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_FRONTEND }}:latest + ${{ env.REGISTRY }}/${{ env.IMAGE_FRONTEND }}:${{ github.sha }}