Skip to content

Commit

Permalink
add in comments for knarly substring line
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jan 29, 2021
1 parent f1fb5d6 commit 5cb8db7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
-
name: Identify GitHub tag name
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
# get tag name from runners environment 'GITHUB_REF' and then use bash substring
# to strip out '+' symbol - required due to gcr not supporting this as a tag
# name (docker hub does support it).
# note if push is NOT triggered by tag then 'GITHUB_REF' will be the branch name.
run: echo "##[set-output name=tag;]$(tag_name=${GITHUB_REF#refs/tags/} && echo "${tag_name//+/-}")"
id: identify_tag
-
name: Build and Push to GCR and Docker Hub
Expand Down

0 comments on commit 5cb8db7

Please sign in to comment.