fix build get tag

This commit is contained in:
Warunee Tamkoo 2026-03-06 17:04:17 +07:00
parent f7fc2c24bd
commit acf5c6462e

View file

@ -32,8 +32,11 @@ jobs:
ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version
run: |
echo "IMAGE_VERSION=latest"
- name: Login in to registry
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:
registry: ${{ env.REGISTRY }}