Skip to content
Snippets Groups Projects
Verified Commit eb653dd6 authored by Olivier Benz's avatar Olivier Benz
Browse files

Freeze GHC v9.4.6, Add Stack v2.11.1

parent 61463eea
Branches
No related tags found
No related merge requests found
Pipeline #22989 passed
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
BUILDX_NO_DEFAULT_ATTESTATIONS: "true" BUILDX_NO_DEFAULT_ATTESTATIONS: "true"
GHC_VERSION_BUILD: "9.2.8" GHC_VERSION_BUILD: "9.4.6"
CABAL_VERSION_BUILD: "3.6.2.0" CABAL_VERSION_BUILD: "3.8.1.0"
STACK_VERSION: "2.11.1" STACK_VERSION: "2.11.1"
before_script: before_script:
- *before-script-build - *before-script-build
......
ARG GHC_VERSION_BUILD=9.4.6 ARG GHC_VERSION_BUILD=9.4.6
ARG CABAL_VERSION_BUILD=3.8.1.0 ARG CABAL_VERSION_BUILD=3.8.1.0
ARG STACK_VERSION=2.11.1
FROM glcr.b-data.ch/ghc/ghc-musl:9.2.8 as bootstrap FROM glcr.b-data.ch/ghc/ghc-musl:9.2.8 as bootstrap
...@@ -99,7 +100,7 @@ RUN apk upgrade --no-cache \ ...@@ -99,7 +100,7 @@ RUN apk upgrade --no-cache \
zlib-static zlib-static
COPY --from=bootstrap /tmp/ghc-"$GHC_VERSION"/_build/bindist/ghc-"$GHC_VERSION"-*-alpine-linux.tar.xz /tmp/ COPY --from=bootstrap /tmp/ghc-"$GHC_VERSION"/_build/bindist/ghc-"$GHC_VERSION"-*-alpine-linux.tar.xz /tmp/
COPY --from=bootstrap /root/.cabal/bin/cabal /usr/bin/cabal COPY --from=bootstrap /root/.cabal/bin/cabal /usr/local/bin/cabal
RUN cd /tmp \ RUN cd /tmp \
&& tar -xJf ghc-"$GHC_VERSION"-*-alpine-linux.tar.xz \ && tar -xJf ghc-"$GHC_VERSION"-*-alpine-linux.tar.xz \
...@@ -125,6 +126,14 @@ RUN ghc -static -optl-pthread -optl-static Main.hs \ ...@@ -125,6 +126,14 @@ RUN ghc -static -optl-pthread -optl-static Main.hs \
&& cabal init -n --is-executable -p tester -l MIT \ && cabal init -n --is-executable -p tester -l MIT \
&& cabal run && cabal run
FROM glcr.b-data.ch/commercialhaskell/ssi:${STACK_VERSION} as ssi
FROM builder as final FROM builder as final
ARG STACK_VERSION
ENV STACK_VERSION=${STACK_VERSION}
COPY --from=ssi /usr/local/bin/stack /usr/local/bin/stack
CMD ["ghci"] CMD ["ghci"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment