Skip to content
Snippets Groups Projects
Commit b31ab696 authored by Eric Casellas's avatar Eric Casellas
Browse files

use job token instead of project var

parent fe23cc4e
No related branches found
No related tags found
1 merge request!5reduce image size
image: docker:stable
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_BUILDKIT: 1
build docker-planemo:
stage: build
image: docker:stable
services:
- docker:dind
variables:
IMAGE_TAG: $CI_REGISTRY/record/docker-planemo/singularity-planemo-galaxy:0.74.9
DOCKER_BUILDKIT: 1
script:
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- echo $CI_JOB_TOKEN | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
script:
- docker build --build-arg BUILDKIT_INLINE_CACHE=1 -t $IMAGE_TAG .
after_script:
- docker push $IMAGE_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment