Add custom built dind as default build path with docker install as fallback
This commit is contained in:
parent
bd72ace198
commit
2fe40c4fb2
1 changed files with 22 additions and 0 deletions
|
@ -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:
|
||||
-
|
||||
|
|
Loading…
Reference in a new issue