Skip to content

Commit d709a91

Browse files
committed
ci: update release workflow
1 parent 8e0bfc6 commit d709a91

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release.yaml

+13-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
name: Build and publish
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-tags: true
2325

2426
- name: Echo Go Cache Paths
2527
id: go-cache-paths
@@ -44,11 +46,18 @@ jobs:
4446
username: ${{ github.actor }}
4547
password: ${{ secrets.GITHUB_TOKEN }}
4648

47-
- name: Build and Push
49+
- name: Get version
50+
id: get-version
51+
env:
52+
ENVBUILDER_RELEASE: "t"
4853
run: |
49-
VERSION=$(./scripts/version.sh)
50-
BASE=ghcr.io/coder/envbuilder
54+
echo "ENVBUILDER_VERSION=$(./scripts.version.sh)" >> $GITHUB_OUTPUT
5155
56+
- name: Build and Push
57+
env:
58+
VERSION: "${{ steps.get-version.outputs.ENVBUILDER_VERSION }}"
59+
BASE: "ghcr.io/coder/envbuilder"
60+
run: |
5261
./scripts/build.sh \
5362
--arch=amd64 \
5463
--arch=arm64 \

0 commit comments

Comments
 (0)