Skip to content

Commit 2961d5e

Browse files
committed
Add artifact attestation for GitHub Container Registry and update README for clarity
1 parent 58d8a0d commit 2961d5e

2 files changed

Lines changed: 29 additions & 3 deletions

File tree

.github/workflows/dockerimage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ jobs:
104104
subject-name: index.docker.io/${{ steps.image_names.outputs.dockerhub_image }}
105105
subject-digest: ${{ steps.push.outputs.digest }}
106106
push-to-registry: true
107+
108+
- name: Generate artifact attestation for GitHub Container Registry
109+
uses: actions/attest-build-provenance@v2
110+
with:
111+
subject-name: ghcr.io/${{ steps.image_names.outputs.ghcr_image }}
112+
subject-digest: ${{ steps.push.outputs.digest }}
113+
push-to-registry: true
107114

108115
- name: Generate SBOM
109116
if: github.event_name != 'pull_request'

README.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ A simple `alpine` docker image that includes the Lua runtime as well as [LuaRock
1010
- LuaRocks 3.11.1 package manager
1111
- Based on Alpine Linux for a minimal footprint
1212
- Container attestation and SBOM support
13+
- Available on both Docker Hub and GitHub Container Registry (ghcr.io)
1314

1415
## Available Tags
1516

16-
Several version tags are available for flexibility:
17+
Several version tags are available for flexibility on both Docker Hub and GitHub Container Registry:
18+
19+
### Docker Hub
1720

1821
### Lua 5.4.7 (Latest)
1922
- `evandarwin/lua:5.4.7` - Specific version
@@ -33,6 +36,16 @@ Several version tags are available for flexibility:
3336
- `evandarwin/lua:5.1.4` - Specific version
3437
- `evandarwin/lua:5.1` - Major.Minor version
3538

39+
### GitHub Container Registry
40+
41+
The same version tags are available on GitHub Container Registry with the `ghcr.io/evandarwin` prefix:
42+
43+
### Lua 5.4.7 (Latest)
44+
- `ghcr.io/evandarwin/lua:5.4.7` - Specific version
45+
- `ghcr.io/evandarwin/lua:5.4` - Major.Minor version
46+
- `ghcr.io/evandarwin/lua:5` - Major version only
47+
- `ghcr.io/evandarwin/lua:latest` - Latest stable release
48+
3649
We recommend using the specific version tag for production environments to ensure stability, while the less specific tags can be used for development or when you want to automatically get updates.
3750

3851
## Docker Image Security
@@ -42,20 +55,26 @@ This image includes supply chain security features:
4255
### Attestations
4356

4457
The image build process includes:
45-
- Docker provenance attestation
58+
- Docker provenance attestation (for both Docker Hub and GitHub Container Registry images)
4659
- Software Bill of Materials (SBOM)
4760

4861
## Usage
4962

5063
```bash
51-
# Pull a specific version
64+
# Pull a specific version from Docker Hub
5265
docker pull evandarwin/lua:5.4.7
5366

5467
# Or use the major.minor version
5568
docker pull evandarwin/lua:5.4
5669

70+
# From GitHub Container Registry
71+
docker pull ghcr.io/evandarwin/lua:5.4.7
72+
5773
# Run a Lua command
5874
docker run -it evandarwin/lua:5.4.7 lua -e "print('Hello from Lua!')"
75+
76+
# Or use the GitHub Container Registry version
77+
docker run -it ghcr.io/evandarwin/lua:5.4.7 lua -e "print('Hello from Lua!')"
5978
```
6079

6180
Have fun!

0 commit comments

Comments
 (0)