mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
GitLab for 12.0
This commit is contained in:
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
||||
|
||||
|
||||
|
||||
7
Dockerfile-GitLab
Normal file
7
Dockerfile-GitLab
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM registry.gitlab.com/hibou-io/hibou-odoo/odoo:12.0
|
||||
|
||||
COPY --chown=104 . /opt/odoo/hibou-suite
|
||||
RUN rm /etc/odoo/odoo.conf \
|
||||
&& cp /opt/odoo/hibou-suite/debian/odoo.conf /etc/odoo/odoo.conf \
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user