Skip to content

Commit

Permalink
ô coisa difícil
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood authored May 15, 2024
1 parent a82a446 commit 25ce152
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_WRITE_TOKEN }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker meta Backend
id: meta_backend
uses: docker/metadata-action@v3
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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 }}

0 comments on commit 25ce152

Please sign in to comment.