Skip to content

Commit f865ab5

Browse files
committed
chore(github/workflows): iterate on release docker to run for tags
1 parent 6e44783 commit f865ab5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release-docker.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ jobs:
4141
- name: Determine image tag
4242
id: image_tag
4343
run: |
44-
if [[ "${{ github.ref_type }}" == "tag" ]]; then
44+
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."
4548
echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
4649
else
50+
echo "This is a branch push."
4751
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
4852
fi
4953

0 commit comments

Comments
 (0)