Skip to content

Commit

Permalink
Merge pull request #1159 from DSD-DBS/fix-pipeline-refs
Browse files Browse the repository at this point in the history
ci: Tag Docker images with Git tag, not `HEAD`
  • Loading branch information
MoritzWeber0 authored Nov 13, 2023
2 parents 570e9a1 + 5a88b9a commit 186f784
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 186f784

Please sign in to comment.