fix tag cicd
All checks were successful
Build / build (push) Successful in 1m2s

This commit is contained in:
Warunee Tamkoo 2025-09-15 17:30:20 +07:00
parent 0d30fa45d5
commit 280e67042b

View file

@ -3,9 +3,8 @@ name: Build
on:
push:
tags:
- "dev[0-9]+.[0-9]+.[0-9]+"
- "dev[0-9]+.[0-9]+.[0-9]+*"
branches:
- dev
workflow_dispatch:
env:
@ -29,11 +28,7 @@ jobs:
ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version
run: |
if [[ "${{ github.event_name }}" == "push" ]]; then
echo "IMAGE_VERSION=${{ github.ref_name }}" | sed 's/dev//g' >> $GITHUB_ENV
else
echo "IMAGE_VERSION=${{ env.IMAGE_VERSION }}-${{ github.run_number }}" >> $GITHUB_ENV
fi
echo "IMAGE_VERSION=latest" >> $GITHUB_ENV
- name: Login in to registry
uses: docker/login-action@v2
with: