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"] ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version - name: Tag Version
run: | run: |
echo "IMAGE_VERSION=latest" if [ "${{ github.ref_type }}" == "tag" ]; then
- name: Login in to registry 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 uses: docker/login-action@v2
with: with:
registry: ${{ env.REGISTRY }} registry: ${{ env.REGISTRY }}