Skip to content

Commit dd4f475

Browse files
committed
only build docker image in the right moment
Signed-off-by: Luiz Oliveira <ziuloliveira@gmail.com>
1 parent 1de0e4f commit dd4f475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
name: Building
3232
runs-on: ubuntu-latest
3333
needs: [versioning, test]
34-
if: github.ref_name == 'refs/heads/main' || github.event_name == 'release'
34+
if: github.ref_name == 'main' || github.event_name == 'release'
3535
outputs:
3636
version: ${{needs.versioning.outputs.FullSemVer}}
3737
steps:
@@ -58,5 +58,5 @@ jobs:
5858
platforms: linux/amd64,linux/arm64
5959
push: true
6060
tags: |
61-
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ needs.versioning.outputs.FullSemVer }}
61+
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:${{ needs.versioning.outputs.MajorMinorPatch }}
6262
${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPOSITORY }}:latest

0 commit comments

Comments
 (0)