Skip to content

Commit d9457eb

Browse files
committed
actions: replacing in workflows
1 parent bec62f8 commit d9457eb

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/build.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ jobs:
3535

3636
steps:
3737
- uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840
- name: Install toolchain
3941
run: |-
4042
rustup show active-toolchain
@@ -46,9 +48,12 @@ jobs:
4648
# - uses: jdx/mise-action@v2
4749
# with:
4850
# experimental: true
49-
- uses: taiki-e/install-action@just
51+
- uses: taiki-e/install-action@v2
52+
with:
53+
tool: just,git-cliff,ripgrep
54+
5055
- name: build
51-
run: just build-binary
56+
run: just replace-version build-binary
5257

5358
- name: rename
5459
run: |-
@@ -79,6 +84,15 @@ jobs:
7984
host_os: ubuntu-latest
8085

8186
steps:
87+
- uses: actions/checkout@v4
88+
with:
89+
fetch-depth: 0
90+
- uses: taiki-e/install-action@v2
91+
with:
92+
tool: just,git-cliff,ripgrep
93+
- name: set version
94+
run: just replace-version
95+
8296
- name: meta
8397
id: meta
8498
uses: docker/metadata-action@v5
@@ -107,6 +121,7 @@ jobs:
107121
id: build
108122
uses: docker/build-push-action@v6
109123
with:
124+
context: .
110125
platforms: ${{ matrix.os }}/${{ matrix.arch }}
111126
cache-from: type=gha
112127
cache-to: type=gha,mode=max

justfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ yellow := '\033[33m'
55
image := "ghcr.io/grampelberg/kuberift"
66
git_version := `git rev-parse --short HEAD 2>/dev/null || echo "unknown"`
77
image_tag := image + ":sha-" + git_version
8-
version := `git cliff --bumped-version --tag-pattern "v.*" 2>/dev/null | cut -c2- || echo "0.0.0"` + "-UNSTABLE"
8+
version := `git cliff --bumped-version --tag-pattern "v.*" 2>/dev/null | cut -c2- || echo "0.0.0"`
99
version_placeholder := "0.0.0-UNSTABLE"
1010

1111
tools:

0 commit comments

Comments
 (0)