Compare commits
No commits in common. "2b1e6b48ed95ec7d87039e61e874f2eec349b849" and "bb78c0d39f09a3763a921e2a15b190361f1c8ec9" have entirely different histories.
2b1e6b48ed
...
bb78c0d39f
1 changed files with 2 additions and 3 deletions
|
@ -47,7 +47,6 @@ jobs:
|
|||
npm install @angular/cli
|
||||
npm run lint
|
||||
- name: Update version
|
||||
id: get-version
|
||||
run: |
|
||||
set -e
|
||||
current_version=$(jq -r '.version' package.json)
|
||||
|
@ -62,12 +61,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:
|
||||
|
@ -75,4 +74,4 @@ jobs:
|
|||
allow: network.host
|
||||
network: host
|
||||
platforms: linux/amd64
|
||||
tags: ${{ steps.repository.outputs.registry }}/${{ steps.repository.outputs.repository }}:${{ steps.get-version.outputs.tag }}
|
||||
tags: $(jq -r '.version' package.json)
|
||||
|
|
Loading…
Reference in a new issue