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
Branches
No related tags found
No related merge requests found
...@@ -45,6 +45,9 @@ variables: ...@@ -45,6 +45,9 @@ variables:
WAIT_HOSTS: 'redis:6379' WAIT_HOSTS: 'redis:6379'
include: include:
- project: gitlab-ci-cd/general
ref: main
file: '/mixins.yml'
- project: 'gitlab-ci-cd/drupal' - project: 'gitlab-ci-cd/drupal'
ref: main ref: main
file: '/data-handling.yml' file: '/data-handling.yml'
...@@ -70,7 +73,13 @@ Release: ...@@ -70,7 +73,13 @@ Release:
extends: '.createrelease' extends: '.createrelease'
Publish Release: 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: LakeDrops:
stage: execute stage: execute
......
...@@ -631,24 +631,9 @@ Debug: ...@@ -631,24 +631,9 @@ Debug:
- 'Build Theme' - 'Build Theme'
.createrelease: .createrelease:
stage: release extends: '.merge'
tags:
- default
variables: variables:
GIT_STRATEGY: none SOURCE_BRANCH: develop
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'
only: only:
variables: variables:
- $CI_COMMIT_MESSAGE =~ /CREATE_RELEASE/ - $CI_COMMIT_MESSAGE =~ /CREATE_RELEASE/
...@@ -664,30 +649,6 @@ Debug: ...@@ -664,30 +649,6 @@ Debug:
- $CHECKUPDATES - $CHECKUPDATES
- $TRIGGERTASK - $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: .check4update:
stage: test stage: test
tags: tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment