We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e44783 commit f865ab5Copy full SHA for f865ab5
.github/workflows/release-docker.yml
@@ -41,9 +41,13 @@ jobs:
41
- name: Determine image tag
42
id: image_tag
43
run: |
44
- if [[ "${{ github.ref_type }}" == "tag" ]]; then
+ echo "GITHUB_REF: ${{ github.ref }}"
45
+ echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
46
+ if [[ "${{ github.ref }}" == refs/tags/* ]]; then
47
+ echo "This is a tag push."
48
echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
49
else
50
+ echo "This is a branch push."
51
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
52
fi
53
0 commit comments