add CI files
Some checks failed
Build gentoo-utils docker image / build-docker (push) Failing after 16s

This commit is contained in:
2025-12-04 22:57:16 +00:00
parent 931a183347
commit e4f16838ed
8 changed files with 91 additions and 0 deletions

19
.docker/Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM gentoo/stage3:latest
COPY etc/portage/make.conf /etc/portage/
COPY etc/portage/repos.conf /etc/portage/
COPY etc/portage/package.accept_keywords /etc/portage/
COPY etc/portage/package.use /etc/portage
RUN emerge --sync
RUN emerge \
=dev-build/meson-9999 \
=dev-lang/rust-bin-9999 \
llvm-core/clang \
llvm-core/lld \
dev-vcs/git \
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"

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 = git
sync-uri = https://github.com/gentoo-mirror/gentoo
sync-git-verify-commit-signature = yes
auto-sync = yes
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
priority = 0
[spawns]
location = /var/db/repos/spawns
sync-type = git
sync-uri = https://jturnerusa.dev/cgit/ebuilds
auto-sync = yes

1
.docker/meson Normal file
View File

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

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
file: .docker/Dockerfile