Skip to content
Snippets Groups Projects
Unverified Commit 8647709f authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Create gfortran container.

parent 1a9e6c25
Branches
No related tags found
No related merge requests found
---
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
FROM alpine
RUN apk add gfortran-10
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment