From f0cf6d9c37468f0fcfa7cc514f1710a2d00c0ead Mon Sep 17 00:00:00 2001 From: carlosthe19916 <2582866+carlosthe19916@users.noreply.github.com> Date: Sat, 14 Sep 2024 18:04:04 +0200 Subject: [PATCH] feat: use latest image by default and set version on release --- .github/workflows/release.yml | 5 +++++ src/main/resources/application.properties | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 711e978..83e9237 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,10 @@ on: description: "Next version" default: "E.g. 5.0.0-SNAPSHOT" required: false + image-server: + description: "The Trustify container image" + default: "ghcr.io/trustification/trustd:latest" + required: true jobs: prepare: @@ -24,6 +28,7 @@ jobs: cache: maven - name: Set release version ${{ github.event.inputs.version }} run: | + sed -i "/related\.image\.server=/ s/=.*/=ghcr\.io\/trustification\/trustd:${{ github.event.inputs.image-server }}/" src/main/resources/application.properties mvn -B versions:set versions:commit -DnewVersion=$NEW_VERSION env: NEW_VERSION: ${{ github.event.inputs.version }} diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b8b089d..ee358db 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -5,7 +5,7 @@ quarkus.container-image.tag=v${quarkus.application.version} quarkus.operator-sdk.crd.apply=true # Operator config -related.image.server=${RELATED_IMAGE_SERVER:ghcr.io/trustification/trustd:0.1.0-alpha.14} +related.image.server=${RELATED_IMAGE_SERVER:ghcr.io/trustification/trustd:latest} related.image.db=${RELATED_IMAGE_DB:quay.io/sclorg/postgresql-15-c9s:latest} related.image.pull-policy=Always