forked from gentoo-utils/gentoo-utils
Compare commits
2 Commits
b753519a3e
...
feature/ad
| Author | SHA1 | Date | |
|---|---|---|---|
| 932cf32a24 | |||
| 90f82f3ae3 |
35
.docker/Dockerfile
Normal file
35
.docker/Dockerfile
Normal 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"]
|
||||
41
.gitea/workflows/docker.yml
Normal file
41
.gitea/workflows/docker.yml
Normal 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
|
||||
Reference in New Issue
Block a user