mirror of
https://github.com/fosrl/newt.git
synced 2026-04-14 22:06:37 +00:00
Compare commits
2 Commits
dependabot
...
fix-nix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d133d69cb9 | ||
|
|
50be4f617e |
20
.github/workflows/cicd.yml
vendored
20
.github/workflows/cicd.yml
vendored
@@ -110,6 +110,15 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Update version in flake.nix
|
||||
shell: bash
|
||||
env:
|
||||
VERSION: ${{ inputs.version }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
sed -i "s/version = \"[0-9]*\.[0-9]*\.[0-9]*\(-rc\.[0-9]*\)\?\"/version = \"$VERSION\"/" flake.nix
|
||||
echo "Updated flake.nix version to $VERSION"
|
||||
|
||||
- name: Create and push tag
|
||||
shell: bash
|
||||
env:
|
||||
@@ -127,6 +136,11 @@ jobs:
|
||||
echo "Tag $VERSION already exists" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! git diff --quiet flake.nix; then
|
||||
git add flake.nix
|
||||
git commit -m "chore(nix): update version to $VERSION"
|
||||
git push origin "$TARGET_BRANCH"
|
||||
fi
|
||||
git tag -a "$VERSION" -m "Release $VERSION"
|
||||
git push origin "refs/tags/$VERSION"
|
||||
|
||||
@@ -264,7 +278,7 @@ jobs:
|
||||
# Build ONLY amd64 and push arch-specific tag suffixes used later for manifest creation.
|
||||
- name: Build and push (amd64 -> *:amd64-TAG)
|
||||
id: build_amd
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
@@ -389,7 +403,7 @@ jobs:
|
||||
# Build ONLY arm64 and push arch-specific tag suffixes used later for manifest creation.
|
||||
- name: Build and push (arm64 -> *:arm64-TAG)
|
||||
id: build_arm
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
@@ -506,7 +520,7 @@ jobs:
|
||||
|
||||
- name: Build and push (arm/v7 -> *:armv7-TAG)
|
||||
id: build_armv7
|
||||
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0
|
||||
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user