Skip to content
Snippets Groups Projects
Commit d734a0dc authored by jurgenhaas's avatar jurgenhaas
Browse files

general#16 Create new mixin to merge a branch, use that in...

general#16 Create new mixin to merge a branch, use that in various places and ensure composer packages to always merge in the release stage
parent c70cdd3d
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,9 @@ variables:
WAIT_HOSTS: 'redis:6379'
include:
- project: gitlab-ci-cd/general
ref: main
file: '/mixins.yml'
- project: 'gitlab-ci-cd/drupal'
ref: main
file: '/data-handling.yml'
......@@ -70,7 +73,13 @@ Release:
extends: '.createrelease'
Publish Release:
extends: '.deployrelease'
extends: '.merge'
variables:
SOURCE_BRANCH: release
rules:
- if: $CI_COMMIT_REF_NAME != "release"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
LakeDrops:
stage: execute
......
......@@ -631,24 +631,9 @@ Debug:
- 'Build Theme'
.createrelease:
stage: release
tags:
- default
extends: '.merge'
variables:
GIT_STRATEGY: none
image: registry.lakedrops.com/docker/gitlab-drupal-ci/php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
cache: {}
before_script: !reference [.prepareaccess, before_script]
script:
- rm -rf /tmp/release || true
- mkdir -p /tmp/release
- cd /tmp/release
- git clone -b develop git@${CI_SERVER_HOST}:$CI_PROJECT_PATH.git .
- merge
- cd -
- rm -rf /tmp/release || true
dependencies:
- 'Validate Environment'
SOURCE_BRANCH: develop
only:
variables:
- $CI_COMMIT_MESSAGE =~ /CREATE_RELEASE/
......@@ -664,30 +649,6 @@ Debug:
- $CHECKUPDATES
- $TRIGGERTASK
.deployrelease:
stage: release
tags:
- default
variables:
GIT_STRATEGY: none
image: registry.lakedrops.com/docker/gitlab-drupal-ci/php-${PHP_MAJOR_VERSION}.${PHP_MINOR_VERSION}
cache: {}
before_script: !reference [.prepareaccess, before_script]
script:
- rm -rf /tmp/release || true
- mkdir -p /tmp/release
- cd /tmp/release
- git clone -b release git@${CI_SERVER_HOST}:$CI_PROJECT_PATH.git .
- merge
- cd -
- rm -rf /tmp/release || true
dependencies:
- 'Validate Environment'
rules:
- if: $CI_COMMIT_REF_NAME != "release"
when: never
- if: $CI_PIPELINE_SOURCE == "schedule"
.check4update:
stage: test
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment