Fix tagging branch name in development Docker publish (#2167)

This commit is contained in:
Zach Wasserman 2021-09-21 14:01:38 -07:00 committed by GitHub
parent e9c4103839
commit 8b04b84b0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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