feat: initial commit (#1)

This commit is contained in:
Paul Makles
2026-01-10 15:18:55 +00:00
committed by GitHub
parent 37eefaa8f5
commit ce437b9810
3 changed files with 56 additions and 0 deletions
+51
View File
@@ -0,0 +1,51 @@
name: Build and Push Docker-in-Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: stoatchat/kubernetes-docker-dind
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest
type=sha
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
+2
View File
@@ -0,0 +1,2 @@
FROM docker:dind
COPY daemon.json /etc/docker/daemon.json
+3
View File
@@ -0,0 +1,3 @@
{
"registry-mirrors": ["http://docker-registry-dockerhub.docker-cache.svc.cluster.local:5000"]
}