From 1ca6f69f8c2ce1d13782c99663557a67e31575a2 Mon Sep 17 00:00:00 2001 From: ties Date: Tue, 27 Aug 2024 07:41:49 +0000 Subject: [PATCH] Add .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..f444441 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,33 @@ +on: + push: + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker BuildX + uses: docker/setup-buildx-action@v2 + with: # replace it with your local IP + config-inline: | + [registry."gitea-http.git:3000"] + http = true + insecure = true + + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: public/custom_act_runner:latest \ No newline at end of file