Skip to content

Commit

Permalink
Docker push tip images (#176)
Browse files Browse the repository at this point in the history
* update docker.yaml to push to tip tag and never push to latest.

* restrict tip to master refs.
  • Loading branch information
jacksonrnewhouse authored Jun 17, 2023
1 parent 81e42e0 commit be4a85c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ jobs:
type=semver,pattern={{major}}
type=sha
flavor: |
latest=false
prefix=${{ matrix.prom_arch }}-
- name: Set env
run: echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
Expand Down Expand Up @@ -129,3 +130,12 @@ jobs:
docker manifest annotate ${IMAGE}:${TAG} ${IMAGE}:arm64-${TAG} --arch arm64
docker manifest annotate ${IMAGE}:${TAG} ${IMAGE}:amd64-${TAG} --arch amd64
docker manifest push ${IMAGE}:${TAG}
- name: Push latest to tip tag.
if: github.ref == 'refs/heads/master'
run: |
TAG=${{ steps.arroyo-docker.outputs.version }}
IMAGE=ghcr.io/arroyosystems/arroyo-${{ matrix.image_type }}
docker manifest create ${IMAGE}:tip ${IMAGE}:arm64-${TAG} ${IMAGE}:amd64-${TAG}
docker manifest annotate ${IMAGE}:tip ${IMAGE}:arm64-${TAG} --arch arm64
docker manifest annotate ${IMAGE}:tip ${IMAGE}:amd64-${TAG} --arch amd64
docker manifest push ${IMAGE}:tip

0 comments on commit be4a85c

Please sign in to comment.