fix tag version
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m30s

This commit is contained in:
Warunee Tamkoo 2026-03-04 17:02:19 +07:00
parent 0ecd354152
commit f59a5eec80

View file

@ -29,7 +29,11 @@ jobs:
ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version
run: |
echo "IMAGE_VERSION=latest"
if [ "${{ github.ref_type }}" == "tag" ]; then
echo "IMAGE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
else
echo "IMAGE_VERSION=latest" >> $GITHUB_ENV
fi
- name: Login in to registry
uses: docker/login-action@v2
with: