Mentions légales du service

Skip to content
Snippets Groups Projects
Commit deeeed4e authored by Julien Vandaele's avatar Julien Vandaele
Browse files

add a gitlab CI/CD file


Co-authored-by: default avatarRoudy Dagher <rdagher@users.noreply.github.com>

add ci.inria tags to use shared runners

specify image in CI/CD
parent 8dabfb7c
No related branches found
No related tags found
1 merge request!1add a gitlab CI/CD file
Pipeline #661839 passed
image: docker:20.10.16
services:
- docker:20.10.16-dind
default:
tags:
- ci.inria.fr
- small
stages:
- build
- release
# - deploy
variables:
CONTAINER_TEST_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CONTAINER_RELEASE_IMAGE: $CI_REGISTRY_IMAGE:latest
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_JOB_TOKEN $CI_REGISTRY
build-image:
stage: build
script:
- docker build --pull -t $CONTAINER_TEST_IMAGE .
- docker push $CONTAINER_TEST_IMAGE
release-image:
stage: release
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
only:
- master
# deploy-image:
# stage: deploy
# script:
# - ./deploy.sh
# only:
# - master
# environment: production
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment