From bea934fc14668d2d4f40a74c5fde8e076f13a158 Mon Sep 17 00:00:00 2001 From: sittichok Ouamsiri Date: Mon, 15 Jun 2026 21:33:44 +0700 Subject: [PATCH] feat: workflow --- .gitea/workflows/buildanddeploy.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/buildanddeploy.yml diff --git a/.gitea/workflows/buildanddeploy.yml b/.gitea/workflows/buildanddeploy.yml new file mode 100644 index 0000000..f90a959 --- /dev/null +++ b/.gitea/workflows/buildanddeploy.yml @@ -0,0 +1,30 @@ +name: Auto Build and Deploy + +on: + push: + tags: + - 'v*' + +permissions: + contents: read + actions: read + packages: write + +jobs: + trigger-internal-build: + uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@1d6923bc938dabb10d5c8c98fadf8abeb6744be3 + with: + image_name: 'snip' + image_tag: ${{ gitea.ref_name }} + secrets: + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + + bump-compose: + needs: trigger-internal-build + uses: infras/workflow-templates/.gitea/workflows/bump-compose-version.yml@1d6923bc938dabb10d5c8c98fadf8abeb6744be3 + with: + app: snip + version: ${{ gitea.ref_name }} + secrets: + COMPOSE_TOKEN: ${{ secrets.COMPOSE_TOKEN }} \ No newline at end of file