Commit 1a20620b authored by Rémi Duraffort's avatar Rémi Duraffort
Browse files

CI: do not build anymore multiarch images



This images are not really used (except by lavafed) because most users will use
the multiarch images on docker hub.
Moreover GitLab docker hub does not handle manifest correctly and leak many
docker images.

Closes #266
Signed-off-by: default avatarRémi Duraffort <remi.duraffort@linaro.org>
parent 796c98eb
......@@ -3,7 +3,6 @@ stages:
- analyze
- build
- docker
- publish
- deploy
include:
......@@ -214,19 +213,6 @@ amd64/lava-server: *docker
aarch64/lava-dispatcher: *docker_aarch64
aarch64/lava-server: *docker_aarch64
###########
# Publish #
###########
manifest:
<<: *dind
stage: publish
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE
only:
refs:
- master
- tags
##########
# Deploy #
##########
......
#!/bin/sh
set -e
if [ "$1" = "setup" ]
then
set -x
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
apk add git python3
else
set -x
# Build the image tag
if [ -n "$CI_COMMIT_TAG" ]
then
IMAGE_TAG="$CI_COMMIT_TAG"
else
IMAGE_TAG="$(./version.py)"
fi
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create $CI_REGISTRY_IMAGE/lava-dispatcher:$IMAGE_TAG $CI_REGISTRY_IMAGE/amd64/lava-dispatcher:$IMAGE_TAG $CI_REGISTRY_IMAGE/aarch64/lava-dispatcher:$IMAGE_TAG
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $CI_REGISTRY_IMAGE/lava-dispatcher:$IMAGE_TAG
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create $CI_REGISTRY_IMAGE/lava-server:$IMAGE_TAG $CI_REGISTRY_IMAGE/amd64/lava-server:$IMAGE_TAG $CI_REGISTRY_IMAGE/aarch64/lava-server:$IMAGE_TAG
DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push $CI_REGISTRY_IMAGE/lava-server:$IMAGE_TAG
fi
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