Skip to content
Snippets Groups Projects
Commit f686fff3 authored by ale's avatar ale
Browse files

Switch to ai3/build-container rules for CI

parent 3c176045
No related branches found
No related tags found
No related merge requests found
Pipeline #7623 passed
image: docker:latest
include: "https://git.autistici.org/ai3/build-container/raw/master/common.yml"
stages:
- docker_build
- release
services:
- docker:dind
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
RELEASE_TAG: $CI_REGISTRY_IMAGE:latest
GIT_SUBMODULE_STRATEGY: recursive
docker_build:
stage: docker_build
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.autistici.org
- docker build --build-arg ci_token=$CI_JOB_TOKEN --pull -t $IMAGE_TAG .
- docker push $IMAGE_TAG
release:
stage: release
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.git.autistici.org
- docker pull $IMAGE_TAG
- docker tag $IMAGE_TAG $RELEASE_TAG
- docker push $RELEASE_TAG
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment