feat(ci): tag docker image as latest only for beta (#7103)

This commit is contained in:
Alexey Shekhirin
2024-03-12 16:53:36 +00:00
committed by GitHub
parent fb30619192
commit 027d50fc10
2 changed files with 20 additions and 8 deletions

View File

@ -36,5 +36,9 @@ jobs:
run: |
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
docker buildx create --use --name cross-builder
- name: Build and push image, tag as "latest"
if: ${{ contains(github.event.ref, 'beta') }}
run: make PROFILE=maxperf docker-build-push-latest
- name: Build and push image
run: make PROFILE=maxperf docker-build-latest
if: ${{ ! contains(github.event.ref, 'beta') }}
run: make PROFILE=maxperf docker-build-push