Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ jobs:
uses: docker/build-push-action@v6
with:
context: ./src/dockerfiles/${{ matrix.image }}
file: ./src/dockerfiles/${{ matrix.image }}/Dockerfile.${{ matrix.gap-build }}
file: ./src/dockerfiles/${{ matrix.image }}/Dockerfile
push: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: ${{ matrix.gap-build }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ RUN groupadd --system --gid ${GAP_USER_GID} ${GAP_USER_GROUPNAME} && \
useradd --system --gid ${GAP_USER_GID} --home-dir ${GAP_USER_HOMEDIR} --create-home ${GAP_USER_USERNAME}




FROM base AS build
FROM base AS buildbare
ARG GAP_VERSION
ARG GAP_DOWNLOAD_URL
ARG GAP_TARBALL_NAME
Expand Down Expand Up @@ -69,9 +67,7 @@ WORKDIR "./gap-${GAP_VERSION}"
RUN ./configure && MAKEFLAGS=-j8 make




FROM base AS result
FROM base AS bare

ARG GAP_VERSION
ARG GAP_USER_HOMEDIR
Expand Down Expand Up @@ -104,7 +100,7 @@ RUN apt-get update --yes && \
USER ${GAP_USER_USERNAME}

RUN mkdir -pv "$HOME/.gap/pkg"
COPY --chown=${GAP_USER_USERNAME}:${GAP_USER_GROUPNAME} --from=build "${GAP_USER_HOMEDIR}/gap-${GAP_VERSION}/" "${GAP_USER_HOMEDIR}/gap-${GAP_VERSION}//"
COPY --chown=${GAP_USER_USERNAME}:${GAP_USER_GROUPNAME} --from=buildbare "${GAP_USER_HOMEDIR}/gap-${GAP_VERSION}/" "${GAP_USER_HOMEDIR}/gap-${GAP_VERSION}//"
ADD --chown=${GAP_USER_USERNAME}:${GAP_USER_GROUPNAME} ${PACKAGE_MANAGER_DOWNLOAD_URL} ./
RUN tar -xvf ${PACKAGE_MANAGER_TARBALL_NAME} -C "$HOME/.gap/pkg"
RUN echo 'LoadPackage("PackageManager"); UpdatePackage("PackageManager", false); QuitGap(InstallRequiredPackages());' | gap --bare
Expand Down
Loading