Skip to content

Commit 11ee1bf

Browse files
committed
ci(build): use version variable
1 parent 15523e0 commit 11ee1bf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
steps:
3636
- uses: actions/checkout@v4
3737

38+
- name: Extract version
39+
run: |
40+
echo "version=$(git describe --tags --dirty --always --abbrev=12)" >> "$GITHUB_ENV"
41+
3842
- name: Set up Docker Buildx
3943
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
4044

@@ -50,7 +54,7 @@ jobs:
5054
with:
5155
context: .
5256
build-args: |
53-
VERSION=$(git describe --tags --dirty --always --abbrev=12)
57+
VERSION=$version
5458
push: false
5559
load: true
5660
tags: rootfsimage

0 commit comments

Comments
 (0)