From 570dfe97228b1d2685014fcf66c2df5085dfaece Mon Sep 17 00:00:00 2001 From: ypratama Date: Wed, 12 Aug 2026 14:42:20 +0700 Subject: [PATCH] Setup Gitea Actions CI/CD pipeline --- .gitea/workflows/docker-build.yml | 27 +++++++++++++++++++++++++++ docker-compose.yml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/docker-build.yml diff --git a/.gitea/workflows/docker-build.yml b/.gitea/workflows/docker-build.yml new file mode 100644 index 0000000..eacb80d --- /dev/null +++ b/.gitea/workflows/docker-build.yml @@ -0,0 +1,27 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Login to Gitea Container Registry + uses: docker/login-action@v2 + with: + registry: git.proit.id + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: git.proit.id/ypratama/portal-inventory:latest diff --git a/docker-compose.yml b/docker-compose.yml index 070a39c..41e471a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: condition: on-failure inventory-app: - image: inventory-app:latest + image: git.proit.id/ypratama/portal-inventory:latest ports: - "3000:3000" environment: