From d249c056bae6a0a1ecaaa3da0dc73f3909437475 Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Thu, 8 Feb 2024 15:26:42 -0400 Subject: [PATCH] build and push --- .gitea/workflows/build-an-push.yaml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/build-an-push.yaml diff --git a/.gitea/workflows/build-an-push.yaml b/.gitea/workflows/build-an-push.yaml new file mode 100644 index 0000000..15435cf --- /dev/null +++ b/.gitea/workflows/build-an-push.yaml @@ -0,0 +1,33 @@ +name: build-and-push + +on: + push: + branches: + - "main" + +jobs: + docker: + runs-on: ubuntu-latest + services: + registry: + image: registry:2 + ports: + - 32000:32000 + 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@v3 + with: + driver-opts: network=host + - name: Build and push to local registry + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: localhost:32000/scrapper:latest + - name: Inspect + run: | + docker buildx imagetools inspect localhost:32000/scrapper:latest