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