add CI files
All checks were successful
Build gentoo-utils docker image / build-docker (push) Successful in 5m0s

This commit is contained in:
2025-12-04 22:57:16 +00:00
parent 931a183347
commit 5eebec3d9b
7 changed files with 97 additions and 0 deletions

26
.docker/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM gentoo/stage3:latest
COPY ./. /
RUN getuto
RUN emerge-webrsync
RUN emerge \
=dev-lang/rust-bin-9999 \
llvm-core/clang \
llvm-core/lld \
dev-vcs/git \
sys-process/parallel
RUN git clone https://jturnerusa.dev/cgit/ebuilds/ /var/db/repos/spawns
COPY etc/portage/repos.conf /etc/portage/
RUN mkdir -p /var/cache/distfiles/git3-src && chown portage:portage /var/cache/distfiles/git3-src
RUN emerge =dev-build/meson-9999
WORKDIR /workspace
ENTRYPOINT /bin/bash

View File

@@ -0,0 +1,2 @@
BINPKG_FORMAT="gpkg"
FEATURES="binpkg-request-signature getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox -userfetch -news"

View File

@@ -0,0 +1 @@
dev-build/meson **

View File

@@ -0,0 +1 @@
dev-lang/rust-bin **

View File

@@ -0,0 +1 @@
dev-lang/rust-bin clippy rustfmt

View File

@@ -0,0 +1,24 @@
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 3
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes
sync-git-verify-commit-signature = true
[spawns]
location = /var/db/repos/spawns
sync-uri = https://jturnerusa.dev/cgit/ebuilds

View File

@@ -0,0 +1,42 @@
name: Build gentoo-utils docker image
on:
push:
branches:
- master
paths:
- '.docker/Dockerfile'
pull_request:
paths:
- '.docker/Dockerfile'
workflow_dispatch:
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout repo
uses: actions/checkout@v4
-
name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
-
name: Log in to Github Container Registry
uses: docker/login-action@v3
with:
registry: git.epenguin.net
username: ${{ gitea.actor }}
password: ${{ secrets.CI_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: git.epenguin.net/${{ gitea.repository }}:latest
context: "{{defaultContext}}:.docker"