Skip to content

Commit

Permalink
ci: Tag Docker images with Git tag, not HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzWeber0 committed Nov 2, 2023
1 parent 7af54dd commit 5a88b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Extract metadata for Docker
id: tag
run: |
echo "branch=$(git rev-parse --abbrev-ref HEAD | sed 's/[^a-zA-Z0-9]/-/g')" >> "$GITHUB_OUTPUT"
echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^a-zA-Z0-9.]/-/g')" >> "$GITHUB_OUTPUT"
echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Build and push Docker image
id: build-and-push
Expand All @@ -80,7 +80,7 @@ jobs:
- name: Extract metadata for Docker
id: tag
run: |
echo "branch=$(git rev-parse --abbrev-ref HEAD | sed 's/[^a-zA-Z0-9]/-/g')" >> "$GITHUB_OUTPUT"
echo "branch=$(echo $GITHUB_REF_NAME | sed 's/[^a-zA-Z0-9.]/-/g')" >> "$GITHUB_OUTPUT"
echo "sha=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
- name: Create k8s Kind Cluster
uses: helm/[email protected]
Expand Down

0 comments on commit 5a88b9a

Please sign in to comment.