Merge branch 'mig/12.0/oca_auditlog_and_purchase' into '12.0-test'

mig/12.0/oca_auditlog_and_purchase into 12.0-test

See merge request hibou-io/hibou-odoo/suite!532
This commit is contained in:
Hibou Bot
2020-10-29 20:18:50 +00:00
4 changed files with 20 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ services:
stages:
- build
- release
- trigger
variables:
@@ -15,7 +16,9 @@ variables:
before_script:
- RELEASE=$(echo $CI_COMMIT_REF_NAME | sed "s{.*\/\(.*\)\/.*{\1{g")
- RELEASE_DATE="$(date '+%Y-%m-%d')"
- IMAGE_TAG=$(echo $CI_COMMIT_REF_SLUG | sed "s/^\([[:digit:]][[:digit:]]\)-\([[:digit:]]\)/\1\.\2/g")
- IMAGE_TAG_DATE="${IMAGE_TAG}-${RELEASE_DATE}"
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
merge_request:
@@ -40,6 +43,20 @@ build:
- docker build --pull -t $CONTAINER_IMAGE:$IMAGE_TAG -f Dockerfile-GitLab .
- docker push $CONTAINER_IMAGE:$IMAGE_TAG
release:
stage: release
variables:
GIT_STRATEGY: none
script:
- apk add python3
- docker pull registry.gitlab.com/hibou-io/hibou-odoo/flow
- docker tag registry.gitlab.com/hibou-io/hibou-odoo/flow flow
- docker run -v "${PWD}/.local:/dest" flow self-install /dest
- cd .local/flow
- ./entrypoint.sh docker-release $CONTAINER_IMAGE:$IMAGE_TAG $CONTAINER_IMAGE:$IMAGE_TAG_DATE
only:
- /^\d+\.\d+$/
publish:
stage: build
script:

1
auditlog Symbolic link
View File

@@ -0,0 +1 @@
./external/hibou-oca/server-tools/auditlog

1
purchase_exception Symbolic link
View File

@@ -0,0 +1 @@
./external/hibou-oca/purchase-workflow/purchase_exception

1
purchase_minimum_amount Symbolic link
View File

@@ -0,0 +1 @@
./external/hibou-oca/purchase-workflow/purchase_minimum_amount