Skip to content
Snippets Groups Projects
Commit 93cf512b authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Add scripts for building images manually

parent e1552120
No related branches found
No related tags found
1 merge request!81alpine: Bump amd64 Alpine bootstrap GHC to 9.0.1
Pipeline #41890 failed
Pipeline: ci-images

#41891

    DHALL ?= dhall
    gitlab-pipeline.yaml: gitlab-pipeline.dhall
    ${DHALL} text --file=$< > $@
    dockerfiles: dockerfiles.dhall
    mkdir -p dockerfiles
    ${DHALL} to-directory-tree --file=$< --output=$@
    #!/usr/bin/env bash
    set -e
    commit="$(git rev-parse HEAD)"
    images="$@"
    dhall to-directory-tree --output dockerfiles < dockerfiles.dhall
    if [ -z "$images" ]; then
    cd dockerfiles
    images="$(ls)"
    fi
    for d in $images; do
    tag="registry.gitlab.haskell.org/ghc/ci-images/$(basename $d):$commit"
    docker build -t "$tag" "$d"
    docker push "$tag"
    done
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment