-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
110 lines (88 loc) · 3.11 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
variables:
# ANSIBLE_GALAXY_PACKAGE_NAME: centurion
MY_PROJECT_ID: "59504579"
# GIT_SYNC_URL: "https://$GITHUB_USERNAME_ROBOT:[email protected]/NoFussComputing/ansible_collection_centurion.git"
PAGES_ENVIRONMENT_PATH: projects/ansible/collection/centurion/
# RELEASE_ADDITIONAL_ACTIONS_BUMP: ./.gitlab/additional_actions_bump.sh
include:
- project: nofusscomputing/projects/gitlab-ci
ref: development
file:
- .gitlab-ci_common.yaml
# - conventional_commits/.gitlab-ci.yml
# - template/ansible-collection.gitlab-ci.yaml
- template/mkdocs-documentation.gitlab-ci.yaml
# ToDo: update gitlabCI jobs for collections workflow
# - git_push_mirror/.gitlab-ci.yml
- automation/.gitlab-ci-ansible.yaml
# Build Collection:
# extends: .ansible_collection_build
# needs:
# - job: Ansible Lint
# optional: true
# - job: Ansible Lint (galaxy.yml)
# optional: true
# rules:
# - if: $CI_COMMIT_TAG
# when: always
# # Needs to run, even by bot as the test results need to be available
# # - if: "$CI_COMMIT_AUTHOR =='nfc_bot <[email protected]>'"
# # when: never
# - if: # Occur on merge
# $CI_COMMIT_BRANCH
# &&
# $CI_PIPELINE_SOURCE == "push"
# when: always
# # - if:
# # $CI_COMMIT_BRANCH != "development"
# # &&
# # $CI_COMMIT_BRANCH != "master"
# # &&
# # $CI_PIPELINE_SOURCE == "push"
# # when: always
# - when: never
# Update Git Submodules:
# extends: .ansible_playbook_git_submodule
# Github (Push --mirror):
# extends:
# - .git_push_mirror
# needs: []
# Gitlab Release:
# extends: .ansible_collection_release
# needs:
# - Stage Collection
# release:
# tag_name: $CI_COMMIT_TAG
# description: ./artifacts/release_notes.md
# name: $CI_COMMIT_TAG
# assets:
# links:
# - name: 'Ansible Galaxy'
# url: https://galaxy.ansible.com/ui/repo/published/${ANSIBLE_GALAXY_NAMESPACE}/${ANSIBLE_GALAXY_PACKAGE_NAME}/?version=${CI_COMMIT_TAG}
# - name: ${ANSIBLE_GALAXY_NAMESPACE}-${ANSIBLE_GALAXY_PACKAGE_NAME}-${CI_COMMIT_TAG}.tar.gz
# url: https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/${ANSIBLE_GALAXY_NAMESPACE}-${ANSIBLE_GALAXY_PACKAGE_NAME}-${CI_COMMIT_TAG}.tar.gz
# link_type: package
# - name: Documentation
# url: https://nofusscomputing.com/${PAGES_ENVIRONMENT_PATH}
# milestones:
# - $CI_MERGE_REQUEST_MILESTONE
Website.Submodule.Deploy:
extends: .submodule_update_trigger
variables:
SUBMODULE_UPDATE_TRIGGER_PROJECT: nofusscomputing/infrastructure/website
environment:
url: https://nofusscomputing.com/$PAGES_ENVIRONMENT_PATH
name: Documentation
rules:
- if: # condition_dev_branch_push
$CI_COMMIT_BRANCH == "development" &&
$CI_PIPELINE_SOURCE == "push"
exists:
- '{docs/**,pages/**}/*.md'
changes:
paths:
- '{docs/**,pages/**}/*.md'
compare_to: 'master'
when: always
- when: never