Skip to content

Commit

Permalink
chore(github/workflows): iterate on release docker to run for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cablehead committed Jan 4, 2025
1 parent 6e44783 commit f865ab5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ jobs:
- name: Determine image tag
id: image_tag
run: |
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "GITHUB_REF: ${{ github.ref }}"
echo "GITHUB_REF_NAME: ${{ github.ref_name }}"
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
echo "This is a tag push."
echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "This is a branch push."
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit f865ab5

Please sign in to comment.