This commit is contained in:
miwr 2025-04-24 14:44:54 +02:00
parent bc63fc68c1
commit b9500d9dab

View file

@ -47,6 +47,7 @@ jobs:
npm install @angular/cli
npm run lint
- name: Update version
id: get-version
run: |
set -e
current_version=$(jq -r '.version' package.json)
@ -61,12 +62,12 @@ jobs:
git stash
git pull
git stash pop
echo "${new_version}"
jq ".version = \"$new_version\"" package.json > temp.json && mv temp.json package.json
sed -i "s|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:.*|forgejo.edf-bootstrap.cx.fg1.ffm.osc.live/devfw-cicd/michals-silly-game-frontend:$new_version|" k8/deployment.yaml
git add .
git commit -m "Automated update by Forgejo Actions"
git push origin HEAD:${{ github.ref_name }}
echo "tag=$new_version" >> "$GITHUB_OUTPUT"
- name: Build and push
uses: docker/build-push-action@v6
with:
@ -74,4 +75,4 @@ jobs:
allow: network.host
network: host
platforms: linux/amd64
tags: $(jq -r '.version' package.json)
tags: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}:${{ steps.get-version.outputs.tag }}