From a742774ae15eb660419d8957392f8f9c0de80fa3 Mon Sep 17 00:00:00 2001 From: Ivan Vazhenin Date: Sun, 25 Feb 2024 16:13:26 +0300 Subject: [PATCH] Add build action --- .gitea/workflows/build.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 067ed75..8e5c5df 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,9 +3,21 @@ run-name: Build xmlrpcserver image on: [push] jobs: - Explore-Gitea-Actions: + Build: runs-on: ubuntu-22.04 steps: - - run: | - docker build . -t reg.ivazh.ru/xmlrpc - docker push reg.ivazh.ru/xmlrpc + - uses: https://github.com/actions/checkout@v4 + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."10.10.8.83:32000"] + http = true + insecure = true + - name: Build and push Docker image + uses: https://github.com/docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: "reg.ivazh.ru/xmlrpc:latest" \ No newline at end of file