Commit 5c163f82 authored by Guillaume Melquiond's avatar Guillaume Melquiond

Deploy an image with a readable name and remove it after deployment.

parent dd3d5313
......@@ -71,13 +71,7 @@ bench-4.06.0:
deploy:
stage: deploy
script:
- autoconf && (automake --add-missing 2> /dev/null || true)
- docker build -t bench-image -f misc/Dockerfile.init .
- docker build -t deploy-image -f misc/Dockerfile.deploy .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker tag deploy-image $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
- docker image prune -f
- misc/ci-deploy.sh
only:
- master
- /^bugfix[/]v[0-9.]*$/
......
FROM bench-image
FROM bench-image-system
USER root
......
#!/bin/sh
set -e
autoconf && (automake --add-missing 2> /dev/null || true)
docker build -t bench-image-system -f misc/Dockerfile.init .
IMAGE=$CI_REGISTRY_IMAGE:$(echo $CI_COMMIT_REF_NAME | tr -cs "[:alnum:].\n" "-")
docker build -t $IMAGE -f misc/Dockerfile.deploy .
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
docker push $IMAGE
docker rmi $IMAGE
#!/bin/bash
set -e -x
set -e
autoconf && (automake --add-missing 2> /dev/null || true)
docker build -t bench-image-$COMPILER -f misc/Dockerfile.init --build-arg compiler=$COMPILER .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment