2 Commits

Author SHA1 Message Date
932cf32a24 infra: [FIXME] add docker build ci
This currently doesn't work. I gotta figure out how to add a ci bot
properly to gitea
2025-12-01 22:49:01 -06:00
90f82f3ae3 infra: add dockerfile used for gentoo-utils 2025-12-01 22:48:30 -06:00
2 changed files with 76 additions and 0 deletions

35
.docker/Dockerfile Normal file
View File

@@ -0,0 +1,35 @@
FROM gentoo/stage3:latest
USER root
# Fix permissions for distfiles directory
RUN mkdir -p /var/cache/distfiles && \
chmod 755 /var/cache/distfiles && \
chown -R portage:portage /var/cache/distfiles
# enable bintoo
RUN echo "BINPKG_FORMAT=\"gpkg\"" >> /etc/portage/make.conf
RUN echo "EMERGE_DEFAULT_OPTS=\"\${EMERGE_DEFAULT_OPTS} --getbinpkg\"" >> /etc/portage/make.conf
RUN echo "FEATURES=\"getbinpkg\"" >> /etc/portage/make.conf
RUN getuto
RUN emerge-webrsync && \
emerge --sync
# get super latest meson
RUN echo "=dev-build/meson-9999 **" >> /etc/portage/package.accept_keywords/package.accept
RUN emerge --ask=n =dev-build/meson-9999
RUN meson --version
# install nightly rust
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
RUN source "$HOME/.cargo/env" && rustc --version && cargo --version
RUN emerge --ask=n dev-vcs/git
# Set working directory
WORKDIR /workspace
# Default command
CMD ["/bin/bash"]

View File

@@ -0,0 +1,41 @@
# 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: ${{ secrets.PIPELINE_REGISTRY_URL }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - name: Extract metadata for Docker
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ghcr.op/${{ github.repository_owner }}/gentoo-utils-builder
# tags: |
# type=raw,value=latest
# type=sha,prefix={{branch}}-
# -name: Build and push docker image