Loading .gitlab-ci.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- stages: - docker - build gfortran: stage: docker image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] rules: - changes: - Dockerfile - build-container.sh tags: [docker] script: - ./build-container.sh Dockerfile 0 → 100644 +3 −0 Original line number Diff line number Diff line FROM alpine RUN apk add gfortran-10 build-container.sh 0 → 100755 +14 −0 Original line number Diff line number Diff line #!/busybox/sh mkdir -p /kaniko/.docker printf '{"auths":{"%s":{"username":"%s","password":"%s"}}}' \ "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" \ > /kaniko/.docker/config.json container=registry.ie.suberic.net/kevin/bulletin/gfortran:latest echo "================= Building $container" /kaniko/executor \ --cache=true \ --context "$PWD" \ --dockerfile "$PWD/Dockerfile" \ --destination "$container" || exit 1 Loading
.gitlab-ci.yml 0 → 100644 +17 −0 Original line number Diff line number Diff line --- stages: - docker - build gfortran: stage: docker image: name: gcr.io/kaniko-project/executor:debug entrypoint: [""] rules: - changes: - Dockerfile - build-container.sh tags: [docker] script: - ./build-container.sh
Dockerfile 0 → 100644 +3 −0 Original line number Diff line number Diff line FROM alpine RUN apk add gfortran-10
build-container.sh 0 → 100755 +14 −0 Original line number Diff line number Diff line #!/busybox/sh mkdir -p /kaniko/.docker printf '{"auths":{"%s":{"username":"%s","password":"%s"}}}' \ "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" \ > /kaniko/.docker/config.json container=registry.ie.suberic.net/kevin/bulletin/gfortran:latest echo "================= Building $container" /kaniko/executor \ --cache=true \ --context "$PWD" \ --dockerfile "$PWD/Dockerfile" \ --destination "$container" || exit 1