Skip to content

Commit

Permalink
chore: github actions use docker images from ghcr.io/hrzlgnm/ (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Nov 11, 2023
1 parent b1fbf1a commit b0b7e54
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 40 deletions.
1 change: 1 addition & 0 deletions .codespellignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
stoll
deque
musl
19 changes: 19 additions & 0 deletions .github/docker/monkey-github-builder-clang/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM debian:bullseye

RUN \
sed -n -e 's/^deb /deb-src /p' /etc/apt/sources.list >/etc/apt/sources.list.d/monkey-sources.list && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
clang-13 \
cmake \
git \
libc++-13-dev \
libc++abi-13-dev \
libc6-dev \
libstdc++-10-dev \
ninja-build \
python3

RUN rm -rf /var/lib/apt/lists/*
13 changes: 13 additions & 0 deletions .github/docker/monkey-github-builder-clang/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# monkey-github-builder--clang Docker image

## Updating the Docker image

Pick a version number for the new Docker image (e.g. `v2`), then run the
following commands:

$ docker build --tag ghcr.io/hrzlgnm/monkey-github-builder--clang:VERSION_NUMBER_HERE .github/docker/monkey-github-builder--clang/
$ docker login ghcr.io -u YOUR_GITHUB_USER_NAME_HERE
$ docker push ghcr.io/hrzlgnm/monkey-github-builder--clang:VERSION_NUMBER_HERE

Then, change the container tag in each workflow file in the .github/workflows/
directory to refer to your new version.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ghcr.io/void-linux/void-musl
RUN xbps-install -Syu || xbps-install -yu xbps \
&& xbps-install -yu \
&& xbps-install -y bash git cmake clang python3-codespell ninja clang clang-tools-extra cppcheck \
&& xbps-remove -Oy


Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# monkey-github-builder-void-linux-musl-clang Docker image

## Updating the Docker image

Pick a version number for the new Docker image (e.g. `v2`), then run the
following commands:

$ docker build --tag ghcr.io/hrzlgnm/monkey-github-builder-void-linux-musl-clang:VERSION_NUMBER_HERE .github/docker/monkey-github-builder-void-linux-musl-clang/
$ docker login ghcr.io -u YOUR_GITHUB_USER_NAME_HERE
$ docker push ghcr.io/hrzlgnm/monkey-github-builder-void-linux-musl-clang:VERSION_NUMBER_HERE

Then, change the container tag in each workflow file in the .github/workflows/
directory to refer to your new version.
60 changes: 20 additions & 40 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

0 comments on commit b0b7e54

Please sign in to comment.