Skip to content

Commit f16f26d

Browse files
committed
ci(images): scratch/empty
1 parent d71127f commit f16f26d

File tree

5 files changed

+43
-2
lines changed

5 files changed

+43
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: pipeline
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
jobs:
16+
scratch-empty:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- uses: docker/login-action@v3
22+
with:
23+
registry: ghcr.io
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- uses: docker/setup-buildx-action@v3
28+
29+
- uses: docker/build-push-action@v6
30+
with:
31+
context: src/scratch/empty
32+
push: true
33+
tags: ghcr.io/${{ github.repository_owner }}/scratch/empty:latest

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# Docker
2-
Docker images
1+
# Public EmberStack Docker images
2+
3+
All images are hosted on GitHub Container Registry at `ghcr.io/emberstack`.

src/scratch/empty/.empty

Whitespace-only changes.

src/scratch/empty/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM scratch
2+
COPY .empty /

src/scratch/empty/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# scratch-empty
2+
3+
A minimal, empty Docker image built from `scratch` containing a single layer.
4+
5+
Intended for use cases such as initializing container registries with a valid base image or serving as a guaranteed zero-CVE image where no operating system or runtime dependencies are needed.

0 commit comments

Comments
 (0)