From 8b04b84b0cd980f18f133ee52d16466b07acad56 Mon Sep 17 00:00:00 2001 From: Zach Wasserman Date: Tue, 21 Sep 2021 14:01:38 -0700 Subject: [PATCH] Fix tagging branch name in development Docker publish (#2167) --- .github/workflows/goreleaser-snapshot-fleet.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index b2a255100e..95ca8232b1 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -68,9 +68,9 @@ jobs: env: GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} - - name: Tag Docker image as branch + - name: Tag image with branch name if: ${{ !github.event.pull_request.head.sha }} - run: docker tag fleetdm/fleet fleetdm/fleet:$(git rev-parse --abbrev-ref HEAD) + run: docker tag fleetdm/fleet:$(git rev-parse --short HEAD) fleetdm/fleet:$(git rev-parse --abbrev-ref HEAD) # Explicitly push the docker images as GoReleaser will not do so in snapshot mode - name: Publish Docker images