Commit 8376255d authored by Gustavo Noronha Silva's avatar Gustavo Noronha Silva
Browse files

Push lava-server image to repository's registry

The new publish stage builds only the lava-server image and publishes
it to the registry.
parent a1c57e7d
stages:
- test
- publish
test:
stage: test
......@@ -15,3 +16,31 @@ test:
- apk add --no-cache curl docker-compose
- docker info
- docker/collabora/ci-run
publish:
stage: publish
image:
name: gcr.io/kaniko-project/executor:debug-v0.16.0
entrypoint: [""]
tags:
- aws
script:
- |
cat << EOF > /kaniko/.docker/config.json
{
"auths":{
"$CI_REGISTRY": {
"username":"$CI_REGISTRY_USER",
"password":"$CI_REGISTRY_PASSWORD"
}
}
}
EOF
- >
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/docker/collabora/Dockerfile
--destination $CI_REGISTRY_IMAGE/collabora-lava:latest
--build-arg REGISTRY=$CI_REGISTRY_IMAGE
--single-snapshot
- echo Pushed
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