From 1e1e0489836a7c8edf4f4eda7818f81186967b6d Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Mon, 29 Jan 2024 13:00:17 +0100 Subject: [PATCH] Example for vlad --- .github/workflows/bbm_build_container.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bbm_build_container.yml b/.github/workflows/bbm_build_container.yml index 5e59ec5a..42ecee09 100644 --- a/.github/workflows/bbm_build_container.yml +++ b/.github/workflows/bbm_build_container.yml @@ -29,6 +29,11 @@ jobs: - name: Set up env vars run: | echo "REPO=bb-master" >>$GITHUB_ENV + if echo "$GITHUB_REF" | grep -q '^upstream/dev';then + echo "TAG=-dev" >>$GITHUB_ENV + else + echo "TAG=" >>$GITHUB_ENV + fi - name: Build master image run: | podman build . --tag ${{ env.REPO }}:master @@ -80,7 +85,7 @@ jobs: for image in master master-web; do skopeo copy --all --src-tls-verify=0 \ docker://localhost:5000/${{ env.REPO }}:${image} \ - docker://ghcr.io/mariadb/buildbot:${image} + docker://ghcr.io/mariadb/buildbot:${image}${{ env.TAG }} done - name: Login to quay.io if: ${{ env.DEPLOY_IMAGES == 'true' }} @@ -98,5 +103,5 @@ jobs: for image in master master-web; do skopeo copy --all --src-tls-verify=0 \ docker://localhost:5000/${{ env.REPO }}:${image} \ - docker://quay.io/mariadb-foundation/${{ env.REPO }}:${image} + docker://quay.io/mariadb-foundation/${{ env.REPO }}:${image}${{ env.TAG }} done