Fix indenting
This commit is contained in:
parent
a4aa676c1c
commit
530a894961
1 changed files with 66 additions and 66 deletions
|
@ -2,71 +2,71 @@ name: 'Build Custom docker:dind image'
|
||||||
author: 'Neshura'
|
author: 'Neshura'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 1'
|
- cron: '0 0 * * 1'
|
||||||
jobs:
|
jobs:
|
||||||
build-container:
|
build-container:
|
||||||
runs-on: dind
|
runs-on: dind
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Install Node.js
|
name: Install Node.js
|
||||||
run: apk add nodejs npm
|
run: apk add nodejs npm
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
config-inline: |
|
config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
mirrors = ["https://docker-cache.neshweb.net"]
|
mirrors = ["https://docker-cache.neshweb.net"]
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: forgejo.neshweb.net
|
registry: forgejo.neshweb.net
|
||||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Push to Package Registry
|
name: Push to Package Registry
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest
|
tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest
|
||||||
|
|
||||||
build-container-fallback:
|
build-container-fallback:
|
||||||
needs: [build-container]
|
needs: [build-container]
|
||||||
if: needs.build-container.result == 'failure'
|
if: needs.build-container.result == 'failure'
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
name: Prepare Container Environment
|
name: Prepare Container Environment
|
||||||
run: |
|
run: |
|
||||||
install -m 0755 -d /etc/apt/keyrings; \
|
install -m 0755 -d /etc/apt/keyrings; \
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg; \
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg; \
|
||||||
chmod a+r /etc/apt/keyrings/docker.gpg; \
|
chmod a+r /etc/apt/keyrings/docker.gpg; \
|
||||||
echo \
|
echo \
|
||||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
||||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||||
tee /etc/apt/sources.list.d/docker.list > /dev/null; \
|
tee /etc/apt/sources.list.d/docker.list > /dev/null; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
-
|
-
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
config-inline: |
|
config-inline: |
|
||||||
[registry."docker.io"]
|
[registry."docker.io"]
|
||||||
mirrors = ["https://docker-cache.neshweb.net"]
|
mirrors = ["https://docker-cache.neshweb.net"]
|
||||||
-
|
-
|
||||||
name: Login to Docker Hub
|
name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: forgejo.neshweb.net
|
registry: forgejo.neshweb.net
|
||||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Push to Package Registry
|
name: Push to Package Registry
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest
|
tags: forgejo.neshweb.net/ci-docker-images/dind-bash:latest
|
Loading…
Reference in a new issue