Neshura
8eda29aad6
Some checks failed
Build Custom docker:dind image / build-container (push) Failing after 26s
34 lines
1.5 KiB
YAML
34 lines
1.5 KiB
YAML
name: 'Build Custom docker:dind image'
|
|
author: 'Neshura'
|
|
|
|
on: [push]
|
|
jobs:
|
|
build-container:
|
|
runs-on: docker
|
|
steps:
|
|
-
|
|
name: Prepare Container Environment
|
|
run: |
|
|
apt-get install ca-certificates curl gnupg; \
|
|
install -m 0755 -d /etc/apt/keyrings; \
|
|
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg; \
|
|
chmod a+r /etc/apt/keyrings/docker.gpg; \
|
|
echo \
|
|
"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" | \
|
|
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null; \
|
|
apt-get update; \
|
|
apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
-
|
|
name: Push to Package Registry
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: https://forgejo.neshweb.net/Neshura/docker-dind-bash:latest |