File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : masterdirs
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " Version tag"
8+ required : true
9+
10+ jobs :
11+ main :
12+ runs-on : ubuntu-latest
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ arch :
17+ - x86_64
18+ - x86_64-musl
19+ - i686
20+ steps :
21+ - name : Checkout repo
22+ uses : actions/checkout@master
23+ - name : Set up QEMU
24+ uses : docker/setup-qemu-action@v1
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v1
27+ - name : Login to GCHR
28+ uses : docker/login-action@v1
29+ with :
30+ registry : ghcr.io
31+ username : void-robot
32+ password : ${{ secrets.CR_PAT }}
33+ - name : Build and push
34+ id : docker_build
35+ uses : docker/build-push-action@v2
36+ with :
37+ file : Dockerfile.masterdir
38+ build-args : |
39+ ARCH=${{ matrix.arch }}
40+ BOOTSTRAP_VERSION=c45f924
41+ push : true
42+ tags : |
43+ ghcr.io/void-linux/xbps-src-masterdir:latest-${{ matrix.arch }}
44+ ghcr.io/void-linux/xbps-src-masterdir:${{ github.event.inputs.version }}-${{ matrix.arch }}
Original file line number Diff line number Diff line change 1+ ARG BOOTSTRAP_SOURCE=ghcr.io/void-linux/docker-bootstrap
2+ ARG BOOTSTRAP_VERSION=latest
3+ FROM ${BOOTSTRAP_SOURCE}:${BOOTSTRAP_VERSION} as build
4+ COPY keys/* /target/var/db/xbps/keys/
5+ ARG REPOSITORY=https://alpha.de.repo.voidlinux.org
6+ ARG ARCH=x86_64
7+ RUN XBPS_ARCH=${ARCH} xbps-install -yMUS \
8+ --repository=${REPOSITORY}/current \
9+ --repository=${REPOSITORY}/current/musl \
10+ -r /target \
11+ base-chroot
12+
13+ FROM scratch
14+ LABEL org.opencontainers.image.source https://github.com/void-linux/void-docker
15+ COPY --from=build /target /
16+ RUN xbps-reconfigure -a && \
17+ rm -r /var/cache/xbps
18+
19+ CMD ["/bin/sh"]
You can’t perform that action at this time.
0 commit comments