Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
thetredev committed Oct 2, 2023
0 parents commit c1250f0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build XBPS container image

on:
push:
branches:
- docker

# TODO: create arch matrix
env:
GHCR_IMAGE: "ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:x86_64"

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4

- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build container image
run: |
docker build -t ${GHCR_IMAGE} image/x86_64
docker push ${GHCR_IMAGE}
16 changes: 16 additions & 0 deletions image/x86_64/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ghcr.io/void-linux/void-buildroot-glibc:20230904R2

RUN mkdir -p /etc/xbps.d && cp /usr/share/xbps.d/*-repository-*.conf /etc/xbps.d/ \
&& sed -i 's|repo-default|repo-ci|g' /etc/xbps.d/*-repository-*.conf \
&& xbps-install -Syu || xbps-install -yu xbps \
&& xbps-install -yu \
&& xbps-install -y \
git \
cmake \
python3 \
tar \
shadow \
util-linux \
xtools \
grep \
curl

0 comments on commit c1250f0

Please sign in to comment.