diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index 7e1faeb..10b1d5d 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -58,4 +58,4 @@ jobs: allow: network.host network: host platforms: linux/arm64 - tags: ${{ steps.docker.outputs.tags }} + tags: $(awk '// {count++; if(count == 2) print $0}' pom.xml | sed -n 's|.*\([^<]*\).*|\1|p') diff --git a/update-version.sh b/update-version.sh index fbfce00..24cc9c0 100755 --- a/update-version.sh +++ b/update-version.sh @@ -32,6 +32,7 @@ fi # Apply it with Maven 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 mvn versions:set -DnewVersion="$new_version" mvn versions:commit