114
.gitlab-ci.yml
114
.gitlab-ci.yml
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
ANSIBLE_GALAXY_PACKAGE_NAME: centurion
|
# ANSIBLE_GALAXY_PACKAGE_NAME: centurion
|
||||||
MY_PROJECT_ID: "59504579"
|
MY_PROJECT_ID: "59504579"
|
||||||
GIT_SYNC_URL: "https://$GITHUB_USERNAME_ROBOT:$GITHUB_TOKEN_ROBOT@github.com/NoFussComputing/ansible_collection_centurion.git"
|
# GIT_SYNC_URL: "https://$GITHUB_USERNAME_ROBOT:$GITHUB_TOKEN_ROBOT@github.com/NoFussComputing/ansible_collection_centurion.git"
|
||||||
PAGES_ENVIRONMENT_PATH: projects/ansible/collection/centurion/
|
PAGES_ENVIRONMENT_PATH: projects/ansible/collection/centurion/
|
||||||
RELEASE_ADDITIONAL_ACTIONS_BUMP: ./.gitlab/additional_actions_bump.sh
|
# RELEASE_ADDITIONAL_ACTIONS_BUMP: ./.gitlab/additional_actions_bump.sh
|
||||||
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
@ -13,79 +13,79 @@ include:
|
|||||||
ref: development
|
ref: development
|
||||||
file:
|
file:
|
||||||
- .gitlab-ci_common.yaml
|
- .gitlab-ci_common.yaml
|
||||||
- conventional_commits/.gitlab-ci.yml
|
# - conventional_commits/.gitlab-ci.yml
|
||||||
- template/ansible-collection.gitlab-ci.yaml
|
# - template/ansible-collection.gitlab-ci.yaml
|
||||||
- template/mkdocs-documentation.gitlab-ci.yaml
|
- template/mkdocs-documentation.gitlab-ci.yaml
|
||||||
# ToDo: update gitlabCI jobs for collections workflow
|
# ToDo: update gitlabCI jobs for collections workflow
|
||||||
- git_push_mirror/.gitlab-ci.yml
|
# - git_push_mirror/.gitlab-ci.yml
|
||||||
- automation/.gitlab-ci-ansible.yaml
|
- automation/.gitlab-ci-ansible.yaml
|
||||||
|
|
||||||
|
|
||||||
Build Collection:
|
# Build Collection:
|
||||||
extends: .ansible_collection_build
|
# extends: .ansible_collection_build
|
||||||
needs:
|
# needs:
|
||||||
- job: Ansible Lint
|
# - job: Ansible Lint
|
||||||
optional: true
|
# optional: true
|
||||||
- job: Ansible Lint (galaxy.yml)
|
# - job: Ansible Lint (galaxy.yml)
|
||||||
optional: true
|
# optional: true
|
||||||
|
|
||||||
rules:
|
# rules:
|
||||||
|
|
||||||
- if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
when: always
|
# when: always
|
||||||
|
|
||||||
# Needs to run, even by bot as the test results need to be available
|
# # Needs to run, even by bot as the test results need to be available
|
||||||
# - if: "$CI_COMMIT_AUTHOR =='nfc_bot <helpdesk@nofusscomputing.com>'"
|
# # - if: "$CI_COMMIT_AUTHOR =='nfc_bot <helpdesk@nofusscomputing.com>'"
|
||||||
# when: never
|
# # when: never
|
||||||
|
|
||||||
- if: # Occur on merge
|
# - if: # Occur on merge
|
||||||
$CI_COMMIT_BRANCH
|
# $CI_COMMIT_BRANCH
|
||||||
&&
|
# &&
|
||||||
$CI_PIPELINE_SOURCE == "push"
|
# $CI_PIPELINE_SOURCE == "push"
|
||||||
when: always
|
# when: always
|
||||||
|
|
||||||
# - if:
|
# # - if:
|
||||||
# $CI_COMMIT_BRANCH != "development"
|
# # $CI_COMMIT_BRANCH != "development"
|
||||||
# &&
|
# # &&
|
||||||
# $CI_COMMIT_BRANCH != "master"
|
# # $CI_COMMIT_BRANCH != "master"
|
||||||
# &&
|
# # &&
|
||||||
# $CI_PIPELINE_SOURCE == "push"
|
# # $CI_PIPELINE_SOURCE == "push"
|
||||||
# when: always
|
# # when: always
|
||||||
|
|
||||||
- when: never
|
# - when: never
|
||||||
|
|
||||||
|
|
||||||
Update Git Submodules:
|
# Update Git Submodules:
|
||||||
extends: .ansible_playbook_git_submodule
|
# extends: .ansible_playbook_git_submodule
|
||||||
|
|
||||||
|
|
||||||
Github (Push --mirror):
|
# Github (Push --mirror):
|
||||||
extends:
|
# extends:
|
||||||
- .git_push_mirror
|
# - .git_push_mirror
|
||||||
needs: []
|
# needs: []
|
||||||
|
|
||||||
|
|
||||||
Gitlab Release:
|
# Gitlab Release:
|
||||||
extends: .ansible_collection_release
|
# extends: .ansible_collection_release
|
||||||
needs:
|
# needs:
|
||||||
- Stage Collection
|
# - Stage Collection
|
||||||
release:
|
# release:
|
||||||
tag_name: $CI_COMMIT_TAG
|
# tag_name: $CI_COMMIT_TAG
|
||||||
description: ./artifacts/release_notes.md
|
# description: ./artifacts/release_notes.md
|
||||||
name: $CI_COMMIT_TAG
|
# name: $CI_COMMIT_TAG
|
||||||
assets:
|
# assets:
|
||||||
links:
|
# links:
|
||||||
- name: 'Ansible Galaxy'
|
# - name: 'Ansible Galaxy'
|
||||||
url: https://galaxy.ansible.com/ui/repo/published/${ANSIBLE_GALAXY_NAMESPACE}/${ANSIBLE_GALAXY_PACKAGE_NAME}/?version=${CI_COMMIT_TAG}
|
# 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
|
# - 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
|
# 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
|
# link_type: package
|
||||||
|
|
||||||
- name: Documentation
|
# - name: Documentation
|
||||||
url: https://nofusscomputing.com/${PAGES_ENVIRONMENT_PATH}
|
# url: https://nofusscomputing.com/${PAGES_ENVIRONMENT_PATH}
|
||||||
milestones:
|
# milestones:
|
||||||
- $CI_MERGE_REQUEST_MILESTONE
|
# - $CI_MERGE_REQUEST_MILESTONE
|
||||||
|
|
||||||
|
|
||||||
Website.Submodule.Deploy:
|
Website.Submodule.Deploy:
|
||||||
|
Reference in New Issue
Block a user