Merge branch 'dev' of https://forgejo.chamomind.com/hrms-bangkok/hrms-manual into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m56s

* 'dev' of https://forgejo.chamomind.com/hrms-bangkok/hrms-manual:
  fix(forgejo): workflows build ci-cd
This commit is contained in:
Warunee Tamkoo 2026-05-18 14:56:49 +07:00
commit b3a6ef5c0d
2 changed files with 13 additions and 9 deletions

View file

@ -1,12 +1,12 @@
# /.forgejo/workflows/build.yml
name: Build
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
# on:
# push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"
# - "v[0-9]+.[0-9]+.[0-9]+*"
# workflow_dispatch:
env:
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}

View file

@ -3,8 +3,8 @@ name: Build & Deploy on Dev
on:
push:
branches:
- dev
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
env:
@ -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: