Skip to content

Commit

Permalink
Make branches valid docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 17, 2024
1 parent 17b14cf commit a4ab90a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/lint-test-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ jobs:

- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
shell: bash
run: |-
BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | sed 's/[^a-zA-Z0-9._-]//g' | awk '{print substr($0, length($0)-120)}')
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
id: extract_branch

- name: Extract tag name
Expand Down

0 comments on commit a4ab90a

Please sign in to comment.