Compare commits

...
Sign in to create a new pull request.

41 commits
develop ... dev

Author SHA1 Message Date
harid
f7edcb176b Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2026-03-23 09:36:57 +07:00
harid
eb93cec966 build tag 2026-03-05 14:01:30 +07:00
537d3f56da Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 57s
* develop:
  fix: delete kpi
2026-02-25 21:31:05 +07:00
a10c6684c2 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m3s
* develop:
  fix: delete kpi row
2026-02-25 21:12:03 +07:00
harid
1e5aa2da3c Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 56s
2026-02-25 16:42:46 +07:00
9d8cb9716e Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 53s
2026-02-20 17:34:35 +07:00
harid
0f0105a2d7 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 53s
2026-02-19 15:16:58 +07:00
325ba86c35 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2026-02-05 17:52:42 +07:00
a979d6d999 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
2026-02-05 14:42:18 +07:00
d28cc99cc6 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
2026-02-05 13:13:14 +07:00
c9eadbd5e8 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 53s
2026-02-03 16:20:10 +07:00
cfec77cb65 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2026-01-28 18:02:12 +07:00
3219cbb801 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2026-01-26 15:14:34 +07:00
4f46384a6e Merge branch 'dev' of https://192.168.1.60/hrms-bangkok/hrms-api-kpi into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
* 'dev' of https://192.168.1.60/hrms-bangkok/hrms-api-kpi:
2025-11-04 09:06:59 +07:00
9a282ab2be Merge branch 'develop' into dev
* develop:
  update
  #29
  test throw report api
  add \n
  add \n orgName
  fix word
  add noti and test
  fix word
  #28
  revert code to normal
  revert checkOrg
  test safeStringify
  revert
  test
  try catch
  fix
  update timezone
2025-11-04 09:06:54 +07:00
3c26bbe513 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s
2025-11-03 10:29:46 +07:00
acf3cb9846 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2025-11-03 10:11:23 +07:00
bc1317a988 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 52s
2025-11-03 10:03:00 +07:00
7dd0ec346d Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2025-10-31 15:09:10 +07:00
f10d20ec38 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 47s
2025-10-31 14:38:13 +07:00
91eb1d563b Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2025-10-31 14:35:03 +07:00
094127a8c9 Merge branch 'adiDev' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2025-10-31 14:26:16 +07:00
b0a7cf509d Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m5s
2025-10-31 11:00:56 +07:00
001fc2e877 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2025-10-31 10:41:14 +07:00
c4faf65050 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2025-10-29 11:19:25 +07:00
1d4ec11f5b Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2025-10-29 11:15:50 +07:00
3351e4800f Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 55s
2025-10-29 09:56:14 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
d0996aca35 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 50s
2025-10-28 14:47:34 +07:00
harid
57d435a1db Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2025-10-28 14:31:04 +07:00
harid
eb9f99399c Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 49s
2025-10-28 10:37:01 +07:00
harid
e904037f85 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 47s
2025-10-24 17:29:06 +07:00
e3f85551bd Merge branch 'dev' of https://192.168.1.60/hrms-bangkok/hrms-api-kpi into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 46s
* 'dev' of https://192.168.1.60/hrms-bangkok/hrms-api-kpi:
2025-10-22 11:05:02 +07:00
0528eaa282 Merge branch 'develop' into dev
* develop:
  Issue/#1880 (#22)
  Task/#1839 (#21)
  fix
  revert /api/v1/kpi/period
  sort ประเมินผลการปฏิบัติราชการระดับบุคคล
2025-10-22 11:04:57 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
77c159b6c7 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 48s
2025-10-14 11:20:50 +07:00
4f64efd2c6 Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 46s
* develop:
  sort ข้อมูลการประเมิน
2025-09-30 16:16:07 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
6ec8f5539a feat: Add Discord Notification
All checks were successful
Build & Deploy on Dev / build (push) Successful in 51s
2025-09-16 14:29:41 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
ef35f9dcc6 Merge branch 'develop' into dev 2025-09-16 14:28:02 +07:00
7d99692c93 Add .forgejo/workflows/ci-cd.yml 2025-09-10 11:57:09 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
d7fd97ff86 fix(deploy) 2025-09-09 09:56:59 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
23a186fd3c fix(deploy) 2025-09-09 09:55:50 +07:00
DESKTOP-1R2VSQH\Lenovo ThinkPad E490
8b78ccf4e6 forgejo 2025-09-09 09:53:53 +07:00
3 changed files with 118 additions and 6 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

@ -0,0 +1,83 @@
# /.forgejo/workflows/build.yml
name: Build & Deploy on Dev
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
env:
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
REGISTRY_USERNAME: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
REGISTRY_PASSWORD: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
CONTAINER_IMAGE_NAME: ${{ vars.CONTAINER_REGISTRY }}/${{ vars.CONTAINER_IMAGE_OWNER }}/${{ vars.CONTAINER_IMAGE_NAME }}
IMAGE_VERSION: latest
DISCORD_WEBHOOK: ${{ vars.DISCORD_WEBHOOK }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry."${{ env.REGISTRY }}"]
ca=["/etc/ssl/certs/ca-certificates.crt"]
- name: Tag Version
run: |
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 }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Build and push docker image
uses: docker/build-push-action@v3
with:
platforms: linux/amd64
context: .
file: ./docker/Dockerfile
tags: ${{ env.CONTAINER_IMAGE_NAME }}:latest,${{ env.CONTAINER_IMAGE_NAME }}:${{ env.IMAGE_VERSION }}
push: true
- name: Remote Deploy
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ vars.SSH_DEPLOY_HOST }}
port: ${{ vars.SSH_DEPLOY_PORT }}
username: ${{ secrets.SSH_DEPLOY_USER }}
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
script: |
cd ~/repo
./replace-env.sh API_KPI "${{ env.IMAGE_VERSION }}"
./deploy.sh hrms-api-kpi
- name: Discord Notification
if: always()
run: |
STATUS="${{ job.status == 'success' && '✅ Success' || '❌ Failed' }}"
COLOR="${{ job.status == 'success' && '3066993' || '15158332' }}"
TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
curl -H "Content-Type: application/json" \
-X POST \
-d "{
\"embeds\": [{
\"title\": \"$STATUS\",
\"description\": \"**Build & Deploy**\\n- Image: \`${{ env.CONTAINER_IMAGE_NAME }}\`\\n- Version: \`${{ env.IMAGE_VERSION }}\`\\n- By: \`${{ github.actor }}\`\",
\"color\": $COLOR,
\"footer\": {
\"text\": \"Release Notification\",
\"icon_url\": \"https://example.com/success-icon.png\"
},
\"timestamp\": \"$TIMESTAMP\"
}]
}" \
${{ env.DISCORD_WEBHOOK }}

View file

@ -0,0 +1,29 @@
name: Build
on:
workflow_dispatch:
inputs:
version:
description: "Version to deploy"
type: string
required: false
default: "latest"
env:
IMAGE_VERSION: build
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Remote Deploy
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ vars.SSH_DEPLOY_HOST }}
port: ${{ vars.SSH_DEPLOY_PORT }}
username: ${{ secrets.SSH_DEPLOY_USER }}
password: ${{ secrets.SSH_DEPLOY_PASSWORD }}
script: |
cd ~/repo
./replace-env.sh API_KPI "${{ inputs.version }}"
./deploy.sh hrms-api-kpi "${{ inputs.version }}"