From 8070dad226d8c89f47dad4e844d86761f8480f96 Mon Sep 17 00:00:00 2001 From: gmega Date: Tue, 29 Oct 2024 17:07:34 -0300 Subject: [PATCH] fix docker build flow --- .github/workflows/docker.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 097c5dfc1..eaf2195bc 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -31,12 +31,16 @@ jobs: uses: docker/metadata-action@v5 with: images: ${{ env.DOCKER_REPO }} + flavor: | + latest=true + tags: | + type=sha - name: Build and Push uses: docker/build-push-action@v6 with: context: . file: ${{ env.DOCKER_FILE }} - tags: | - latest=true - type=sha + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file