Neshura
f9cc13e249
All checks were successful
Build Custom docker:dind image / build-container (push) Successful in 2m8s
36 lines
1.6 KiB
YAML
36 lines
1.6 KiB
YAML
name: 'Build Custom docker:dind image'
|
|
author: 'Neshura'
|
|
|
|
on: [push]
|
|
jobs:
|
|
build-container:
|
|
runs-on: docker
|
|
steps:
|
|
-
|
|
name: Prepare Container Environment
|
|
run: |
|
|
install -m 0755 -d /etc/apt/keyrings; \
|
|
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; \
|
|
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" | \
|
|
tee /etc/apt/sources.list.d/docker.list > /dev/null; \
|
|
apt-get update; \
|
|
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
|
-
|
|
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 |