From fb7964dd58b6bbbfec4e6aa909fae02b405eebe2 Mon Sep 17 00:00:00 2001 From: Matt Daily Date: Mon, 4 Nov 2024 10:47:45 -0800 Subject: [PATCH] Make sure we run build docker on all branches, also fix up image tags --- .github/workflows/build-docker.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml index b9285031..a100be32 100644 --- a/.github/workflows/build-docker.yml +++ b/.github/workflows/build-docker.yml @@ -5,7 +5,7 @@ concurrency: ${{ github.workflow }}-${{ github.ref }} on: push: branches: - - "*" + - "**" tags: - "*" pull_request: @@ -54,5 +54,8 @@ jobs: with: context: . push: true - tags: ${{ steps.meta.outputs.tags }} + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + ${{ github.event_name == 'push' && github.ref_type == 'tag' && format('{0}:{1}', env.REGISTRY, env.IMAGE_NAME) }}:${{ github.ref_name }} labels: ${{ steps.meta.outputs.labels }}