Skip to content
Snippets Groups Projects
Verified Commit baa73b2d authored by Virgile Gerecke's avatar Virgile Gerecke 🤘
Browse files

👷 Switch CI to template

parent e778d55d
No related merge requests found
Pipeline #78456 passed with stages
in 3 minutes and 9 seconds
stages:
- build
- scan
- release
variables:
CONTAINER_TEST_IMAGE: unistra/python3.6-ci:$CI_COMMIT_REF_NAME
CONTAINER_RELEASE_IMAGE: unistra/python3.6-ci:latest
before_script:
- echo $DOCKERHUB_PASSWD | docker login -u gafhyb --password-stdin
b:docker:
image: docker:20.10
stage: build
services:
- docker:20.10-dind
script:
- docker build --pull -t $CONTAINER_TEST_IMAGE -f Dockerfile .
- docker push $CONTAINER_TEST_IMAGE
r:docker:
stage: release
image: docker:20.10
services:
- docker:20.10-dind
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
only:
- master
CONTAINER_TEST_IMAGE: $CI_REGISTRY/docker/python3.6-ci:$CI_COMMIT_REF_NAME
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY/docker/python3.6-ci:latest
include:
- remote: https://git.unistra.fr/docker/template/-/raw/main/scan.gitlab-ci.yml
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