Skip to content
This repository was archived by the owner on Jan 15, 2026. It is now read-only.

Commit 31ab3ff

Browse files
committed
GHActions: use the same TAG for the container and other artifacts
1 parent 8d76e87 commit 31ab3ff

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Push Container Image
1+
name: Build and Push Container Image and Release Artifacts
22

33
on: # yamllint disable-line rule:truthy
44
push:
@@ -14,6 +14,9 @@ jobs:
1414
packages: write
1515
contents: read
1616

17+
outputs:
18+
tag: ${{ steps.tag.outputs.tag }}
19+
1720
steps:
1821
- name: Checkout repository
1922
uses: actions/checkout@v4
@@ -42,26 +45,21 @@ jobs:
4245
4346
build-release-artifacts:
4447
runs-on: ubuntu-latest
48+
needs: build-image
4549
permissions:
4650
contents: write
4751
steps:
4852
- name: Checkout repository
4953
uses: actions/checkout@v4
5054

51-
- name: Generate tag
52-
id: tag
53-
run: |
54-
TAG=$(date +%Y%m%d-%H%M%S)-${GITHUB_SHA::8}
55-
echo "tag=$TAG" >> $GITHUB_OUTPUT
56-
5755
- name: Build claude extension
5856
env:
59-
TAG: ${{ steps.tag.outputs.tag }}
57+
TAG: ${{ needs.build-image.outputs.tag }}
6058
run: make build-claude-extension
6159

6260
- name: Create release with assets
6361
env:
64-
TAG: ${{ steps.tag.outputs.tag }}
62+
TAG: ${{ needs.build-image.outputs.tag }}
6563
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6664
run: |
6765
gh release create "$TAG" \

0 commit comments

Comments
 (0)