Skip to content

Commit 03953ca

Browse files
authored
Support for ARM64 and other improvements (#125)
* Bumped base image from 3.2.6 to 3.2.8, plus bullseye to bookworm and pinned the image to the SHA * Pinned GitHub Actions. Added arm64 platform/architecture requested via #123 * Preparing release 0.18.0 * Added name to local dictionary
1 parent 59e5c20 commit 03953ca

File tree

4 files changed

+27
-11
lines changed

4 files changed

+27
-11
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,48 @@
33
name: Publish to DockerHub
44

55
on:
6-
schedule:
7-
- cron: "0 0 */28 */1 *"
86
push:
97
branches:
108
- master
9+
tags:
10+
- "*"
11+
12+
permissions:
13+
contents: read
14+
packages: write
1115

1216
jobs:
1317
dockerhub-publish:
1418
runs-on: ubuntu-latest
1519
steps:
1620
-
1721
name: Checkout
18-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
1923
-
2024
name: Set up QEMU
21-
uses: docker/setup-qemu-action@v3
25+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # ratchet:docker/setup-qemu-action@v3
2226
-
2327
name: Set up Docker Buildx
24-
uses: docker/setup-buildx-action@v3
28+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # ratchet:docker/setup-buildx-action@v3
2529
-
2630
name: Login to DockerHub
27-
uses: docker/login-action@v3
31+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # ratchet:docker/login-action@v3
2832
with:
2933
username: ${{ secrets.DOCKERHUB_USERNAME }}
3034
password: ${{ secrets.DOCKERHUB_TOKEN }}
3135
-
3236
name: Build and push
33-
uses: docker/build-push-action@v6
37+
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 # ratchet:docker/build-push-action@v6
3438
with:
35-
context: .
36-
file: ./Dockerfile
39+
platforms: "linux/amd64,linux/arm64"
40+
cache-from: type=gha
41+
cache-to: type=gha,mode=max
3742
push: true
3843
tags: |
3944
jonasbn/cheatset:latest
4045
-
4146
name: Docker Hub Description
42-
uses: peter-evans/dockerhub-description@v4
47+
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # ratchet:peter-evans/dockerhub-description@v4.0.2
4348
with:
4449
username: ${{ secrets.DOCKERHUB_USERNAME }}
4550
password: ${{ secrets.DOCKERHUB_TOKEN }}

.wordlist.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ snyk
2828
suredream
2929
tmp
3030
toolchain
31+
kspeeckaert

Changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change log for Docker-cheatset
22

3+
## 0.18.0 2025-05-21 Feature/maintenance release
4+
5+
- Bumped Docker base image from Ruby 3.2.6-slim-bullseye to 3.2.8-slim-bookworm
6+
7+
- Pinned Docker base image
8+
9+
- Pinned GitHub Actions
10+
11+
- Added build of arm64 architecture/platform as requested by @kspeeckaert via issue [#123](https://github.com/jonasbn/docker-cheatset/issues/123)
12+
313
## 0.17.0 2024-11-10 Maintenance release
414

515
- Bumped Docker base image from Ruby 3.2.3-slim-bullseye to 3.2.6-slim-bullseye, via PR [#108](https://github.com/jonasbn/docker-cheatset/pull/108) from @jonasbn

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# REF: https://docs.docker.com/engine/reference/builder/
22
# REF: https://hub.docker.com/_/ruby
3-
FROM ruby:3.2.6-slim-bullseye
3+
FROM ruby:3.2.8-slim-bookworm@sha256:b42a6ec7c24b0105241429d41cab49c5d6d57e5b0df8c86cdf54cc405b9c3c79
44

55
# We point to the original repository for the image
66
LABEL org.opencontainers.image.source=https://github.com/jonasbn/docker-cheatset

0 commit comments

Comments
 (0)