From d4df4db22e3d78971a1e270c67e3f09d5512efde Mon Sep 17 00:00:00 2001 From: bagas Date: Sun, 22 Feb 2026 00:46:25 +0700 Subject: [PATCH] ci: add docker build --- .gitea/workflows/build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..1915148 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,31 @@ +name: Docker Build and Push + +on: + push: + +jobs: + build-and-push: + name: Build and Push Docker Image + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.fossy.my.id + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: git.fossy.my.id/${{ secrets.DOCKER_USERNAME }}/ristek-task-be:latest + platforms: linux/amd64,linux/arm64