mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Ensure that short tags push to quay in addition to dockerhub (#11006)
This should include the short tags (such as `fleetdm/fleet:43e434b`) when pushing to quay.io (`quay.io/fleetdm/fleet:43e434b`) Additionally, the previous `docker buildx imagetools create` line was only pushing a linux/amd64 image to quay. This means that for these tags, one could not pull from quay on an arm64 Mac for example. This update should correct that.
This commit is contained in:
parent
af36687969
commit
a257a696a6
2 changed files with 5 additions and 3 deletions
3
.github/workflows/goreleaser-fleet.yaml
vendored
3
.github/workflows/goreleaser-fleet.yaml
vendored
|
|
@ -76,5 +76,6 @@ jobs:
|
|||
- name: Tag and push to quay.io
|
||||
run: |
|
||||
for TAG in ${{ steps.docker.outputs.TAG }}; do
|
||||
docker buildx imagetools create --tag quay.io/fleetdm/fleet:${TAG} fleetdm/fleet:${TAG}
|
||||
docker tag fleetdm/fleet:${TAG} quay.io/fleetdm/fleet:${TAG}
|
||||
docker push quay.io/fleetdm/fleet:${TAG}
|
||||
done
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ jobs:
|
|||
|
||||
- name: Get tag
|
||||
run: |
|
||||
echo "TAG=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT
|
||||
echo "TAG=$(git rev-parse --abbrev-ref HEAD) $(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
id: docker
|
||||
|
||||
- name: List tags for push
|
||||
|
|
@ -77,5 +77,6 @@ jobs:
|
|||
- name: Tag and push to quay.io
|
||||
run: |
|
||||
for TAG in ${{ steps.docker.outputs.TAG }}; do
|
||||
docker buildx imagetools create --tag quay.io/fleetdm/fleet:${TAG} fleetdm/fleet:${TAG}
|
||||
docker tag fleetdm/fleet:${TAG} quay.io/fleetdm/fleet:${TAG}
|
||||
docker push quay.io/fleetdm/fleet:${TAG}
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue