From 960c60accc5f152df0dd39a64f5799c182836f9b Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 28 May 2025 00:43:29 +0700 Subject: [PATCH] add build workflow for backend application and Docker image --- .gitea/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..e891ac9 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build Backend Application and Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + build-docker: + needs: build-backend + runs-on: ubuntu-latest + permissions: + packages: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: git.siwatsystem.com + username: ${{ github.actor }} + password: ${{ secrets.RUNNER_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + file: ./Dockerfile + push: true + tags: git.siwatsystem.com/adsist-cms/worker:latest \ No newline at end of file