add CI files
All checks were successful
Build gentoo-utils docker image / build-docker (push) Successful in 5m0s
All checks were successful
Build gentoo-utils docker image / build-docker (push) Successful in 5m0s
This commit is contained in:
26
.docker/Dockerfile
Normal file
26
.docker/Dockerfile
Normal 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
|
||||
2
.docker/etc/portage/make.conf
Normal file
2
.docker/etc/portage/make.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
BINPKG_FORMAT="gpkg"
|
||||
FEATURES="binpkg-request-signature getbinpkg -ipc-sandbox -network-sandbox -pid-sandbox -userfetch -news"
|
||||
1
.docker/etc/portage/package.accept_keywords/meson
Normal file
1
.docker/etc/portage/package.accept_keywords/meson
Normal file
@@ -0,0 +1 @@
|
||||
dev-build/meson **
|
||||
1
.docker/etc/portage/package.accept_keywords/rust-bin
Normal file
1
.docker/etc/portage/package.accept_keywords/rust-bin
Normal file
@@ -0,0 +1 @@
|
||||
dev-lang/rust-bin **
|
||||
1
.docker/etc/portage/package.use/rust-bin
Normal file
1
.docker/etc/portage/package.use/rust-bin
Normal file
@@ -0,0 +1 @@
|
||||
dev-lang/rust-bin clippy rustfmt
|
||||
24
.docker/etc/portage/repos.conf
Normal file
24
.docker/etc/portage/repos.conf
Normal 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
|
||||
42
.gitea/workflows/docker.yml
Normal file
42
.gitea/workflows/docker.yml
Normal 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"
|
||||
Reference in New Issue
Block a user