Skip to content

Commit

Permalink
feat: use latest image by default and set version on release
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosthe19916 committed Sep 14, 2024
1 parent 2e3e5b4 commit f0cf6d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f0cf6d9

Please sign in to comment.