feat(ci): deploy to other projects that use git submodule
triggers submodule update job in projects that use ths project as a git submodule !8 closes #3
This commit is contained in:
7
.cz.yaml
Normal file
7
.cz.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
commitizen:
|
||||||
|
bump_message: "build(version): bump version $current_version \u2192 $new_version"
|
||||||
|
changelog_incremental: false
|
||||||
|
name: cz_conventional_commits
|
||||||
|
tag_format: $major.$minor.$patch$prerelease
|
||||||
|
update_changelog_on_bump: true
|
||||||
|
version: 0.0.1
|
@ -1,46 +1,66 @@
|
|||||||
stages:
|
---
|
||||||
- validation
|
|
||||||
- build
|
|
||||||
- prepare
|
|
||||||
- deploy
|
|
||||||
- test
|
|
||||||
- release
|
|
||||||
- publish
|
|
||||||
|
|
||||||
variables:
|
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
|
||||||
MY_PROJECT_ID: "38927651"
|
|
||||||
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: nofusscomputing/projects/gitlab-ci
|
- project: nofusscomputing/projects/gitlab-ci
|
||||||
ref: development
|
ref: development
|
||||||
file:
|
file:
|
||||||
- conventional_commits/.gitlab-ci.yml
|
- .gitlab-ci_common.yaml
|
||||||
- lint/markdown.gitlab-ci.yaml
|
- template/automagic.gitlab-ci.yaml
|
||||||
|
|
||||||
Lint Markdown:
|
|
||||||
extends: .Lint_Markdown
|
|
||||||
|
|
||||||
|
|
||||||
re-deploy Website:
|
variables:
|
||||||
stage: publish
|
MY_PROJECT_ID: "38927651"
|
||||||
trigger:
|
|
||||||
project: nofusscomputing/infrastructure/website
|
|
||||||
branch: master
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH == "master"'
|
|
||||||
when: always
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
|
|
||||||
re-deploy Website:
|
Ansible_playbooks.Submodule.Deploy:
|
||||||
stage: publish
|
extends: .submodule_update_trigger
|
||||||
trigger:
|
variables:
|
||||||
project: nofusscomputing/infrastructure/website
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/ansible/ansible_playbooks
|
||||||
branch: development
|
|
||||||
rules:
|
|
||||||
- if: '$CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH == "development"'
|
|
||||||
when: always
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
|
|
||||||
|
Ansible-roles.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/ansible/ansible-roles
|
||||||
|
|
||||||
|
|
||||||
|
Docker_Mail.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/docker-mail
|
||||||
|
|
||||||
|
|
||||||
|
docker-buildx-qemu.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/docker-buildx-qemu
|
||||||
|
|
||||||
|
|
||||||
|
execution_environment.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/ansible/execution_environment
|
||||||
|
|
||||||
|
|
||||||
|
git_configuration.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/ansible/git_configuration
|
||||||
|
|
||||||
|
|
||||||
|
gitlab-ci.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/projects/gitlab-ci
|
||||||
|
|
||||||
|
|
||||||
|
Ops.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/ops
|
||||||
|
|
||||||
|
|
||||||
|
Website.Submodule.Deploy:
|
||||||
|
extends: .submodule_update_trigger
|
||||||
|
variables:
|
||||||
|
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/infrastructure/website
|
||||||
|
Submodule gitlab-ci updated: 3324ce2002...6201afaf7e
Reference in New Issue
Block a user