Skip to content

Commit

Permalink
Update build-and-publish-docker-images-workflow.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWollbrink committed Oct 9, 2023
1 parent c4c59ae commit 2bdc00c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ jobs:

- name: Set environment for branch
run: |
if [[ "${{github.base_ref}}" == "master" || "${{github.ref}}" == "refs/heads/master" ]]; then
if [[ "${{github.base_ref}}" == "main" || "${{github.ref}}" == "refs/heads/main" ]]; then
echo "IMAGE_TAG=latest" >> "$GITHUB_ENV"
elif [[ "${{github.base_ref}}" == "staging" || "${{github.ref}}" == "refs/heads/staging" ]]; then
echo "IMAGE_TAG=staging" >> "$GITHUB_ENV"
else
echo "IMAGE_TAG=unstable" >> "$GITHUB_ENV"
fi
Expand Down

0 comments on commit 2bdc00c

Please sign in to comment.