changed docker-build action

This commit is contained in:
Bryan Gerlach
2025-02-01 14:20:39 -06:00
parent 614b1a4149
commit 8b238be275

View File

@@ -14,11 +14,12 @@ jobs:
steps:
- name: set docker image tag
run: |
echo "CREATE_IMAGE=true" >> $env:GITHUB_ENV
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
echo "IMAGE_TAG=dev" >> $env:GITHUB_ENV
echo "CREATE_IMAGE=true" >> $env:GITHUB_ENV
elif [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "IMAGE_TAG=${{ github.ref_name }}"
echo "CREATE_IMAGE=true" >> $env:GITHUB_ENV
else
echo "CREATE_IMAGE=false" >> $env:GITHUB_ENV
fi