File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,10 +99,14 @@ jobs:
9999 VERSION=${GITHUB_REF#refs/tags/}
100100 echo "version=$VERSION" >> $GITHUB_OUTPUT
101101 echo "tag_list=type=raw,value=$VERSION" >> $GITHUB_OUTPUT
102- else
102+ elif [[ "${{ github.ref }}" == refs/heads/master ]]; then
103103 echo "is_tag=false" >> $GITHUB_OUTPUT
104104 echo "is_branch=true" >> $GITHUB_OUTPUT
105105 echo "tag_list=type=raw,value=latest" >> $GITHUB_OUTPUT
106+ else
107+ echo "is_tag=false" >> $GITHUB_OUTPUT
108+ echo "is_branch=false" >> $GITHUB_OUTPUT
109+ echo "tag_list=type=sha,value=${{ github.sha }}" >> $GITHUB_OUTPUT
106110 fi
107111
108112 - name : Docker meta
@@ -144,8 +148,10 @@ jobs:
144148 if [[ "${{ github.ref }}" == refs/tags/* ]]; then
145149 VERSION=${GITHUB_REF#refs/tags/}
146150 echo "TAGS=$VERSION $SHA_TAG" >> $GITHUB_ENV
147- else
151+ elif [[ "${{ github.ref }}" == refs/heads/master ]]; then
148152 echo "TAGS=latest $SHA_TAG" >> $GITHUB_ENV
153+ else
154+ echo "TAGS=$SHA_TAG" >> $GITHUB_ENV
149155 fi
150156
151157 - name : Login to Dockerhub registry with ORAS
You can’t perform that action at this time.
0 commit comments