mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
25 lines
552 B
YAML
25 lines
552 B
YAML
image: docker:stable
|
|
services:
|
|
- docker:dind
|
|
|
|
stages:
|
|
- build
|
|
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375
|
|
DOCKER_DRIVER: overlay2
|
|
CONTAINER_IMAGE: registry.gitlab.com/hibou-io/hibou-odoo/suite
|
|
|
|
before_script:
|
|
- RELEASE=$(echo $CI_COMMIT_REF_SLUG | sed "s/^\([[:digit:]][[:digit:]]\)-\([[:digit:]]\)/\1\.\2/g")
|
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
|
|
|
build:
|
|
stage: build
|
|
script:
|
|
- docker build --pull -t $CONTAINER_IMAGE:$RELEASE -f Dockerfile-GitLab .
|
|
- docker push $CONTAINER_IMAGE:$RELEASE
|
|
|
|
|
|
|