From c0b2ecdf4404888e5ceccf6ad14e35c5e5c52664 Mon Sep 17 00:00:00 2001 From: Raffaele <151576068+raffaele-oplabs@users.noreply.github.com> Date: Tue, 1 Oct 2024 20:00:51 +0200 Subject: [PATCH] Monitorism #81 (#82) * testing circleci fix * testing 2 * setting latest for release * changes completed --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b9001617..c919e1ec 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -193,13 +193,16 @@ jobs: else export GIT_VERSION=$(echo "$full_release_tag" | tail -n 1) fi + if [ "<>" == "true" ]; then + export IMAGE_TAGS="$GIT_VERSION,$IMAGE_TAGS,latest" + else + export IMAGE_TAGS="$GIT_VERSION,$IMAGE_TAGS" + fi - export IMAGE_TAGS="$GIT_VERSION,$IMAGE_TAGS" echo "Setting IMAGE_TAGS=$IMAGE_TAGS" fi - # Create, start (bootstrap) and use a *named* docker builder # This allows us to cross-build multi-platform, # and naming allows us to use the DLC (docker-layer-cache) @@ -266,7 +269,7 @@ workflows: type: approval filters: tags: - only: (^op-monitorism\/v.*$|^op-defender\/v.*$) + only: /(^op-monitorism\/v.*$|^op-defender\/v.*$)/ branches: ignore: /.*/ - docker-build: @@ -299,6 +302,7 @@ workflows: release: true context: - oplabs-gcr + main: when: and: