From 2fe40c4fb2a6616bc6bbe4804c204483686e3873 Mon Sep 17 00:00:00 2001 From: Neshura Date: Thu, 16 Nov 2023 19:04:39 +0000 Subject: [PATCH] Add custom built dind as default build path with docker install as fallback --- .forgejo/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 3cfcbd1..de34305 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -4,6 +4,28 @@ author: 'Neshura' on: [push] jobs: build-container: + runs-on: dind + steps: + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - + name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: forgejo.neshweb.net + username: ${{ secrets.FORGEJO_USERNAME }} + password: ${{ secrets.FORGEJO_TOKEN }} + - + name: Push to Package Registry + uses: docker/build-push-action@v5 + with: + push: true + tags: forgejo.neshweb.net/neshura/docker-dind-bash:latest + + build-container-fallback: + if: failure() + needs: build-container runs-on: docker steps: -