This commit is contained in:
parent
cb3a6978d6
commit
d26199c18f
2 changed files with 4 additions and 2 deletions
|
@ -15,7 +15,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: silly-game
|
- name: silly-game
|
||||||
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:main
|
image: forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:0.1.0-SNAPSHOT
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: DOMAIN
|
- name: DOMAIN
|
||||||
|
|
|
@ -32,7 +32,9 @@ fi
|
||||||
|
|
||||||
# Apply it with Maven
|
# Apply it with Maven
|
||||||
echo "🔧 Updating version: $current_version → $new_version"
|
echo "🔧 Updating version: $current_version → $new_version"
|
||||||
sed -i "s|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:.*|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:$new_version|" k8/deployment.yaml
|
TAG=$(echo "$new_version" | tr '[:upper:]' '[:lower:]')
|
||||||
|
sed -i '' "s|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:.*|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-backend:$TAG|" k8/deployment.yaml
|
||||||
|
echo "reference changed to $TAG"
|
||||||
mvn versions:set -DnewVersion="$new_version"
|
mvn versions:set -DnewVersion="$new_version"
|
||||||
mvn versions:commit
|
mvn versions:commit
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue