From 3bc705caff469f81f805f3b890d829398376cc02 Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 8 Aug 2023 12:36:25 +0930 Subject: [PATCH] ci: add CI jobs !1 --- .cz.yaml | 7 +++++++ .gitlab-ci.yml | 25 +++++++++++++++++++++++++ .gitmodules | 4 ++++ .nfc_automation.yaml | 8 ++++++++ gitlab-ci | 1 + 5 files changed, 45 insertions(+) create mode 100644 .cz.yaml create mode 100644 .gitlab-ci.yml create mode 100644 .gitmodules create mode 100644 .nfc_automation.yaml create mode 160000 gitlab-ci diff --git a/.cz.yaml b/.cz.yaml new file mode 100644 index 0000000..62b2ada --- /dev/null +++ b/.cz.yaml @@ -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 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..db6b6a5 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,25 @@ +variables: + MY_PROJECT_ID: "48321671" + GIT_SYNC_URL: "https://$GITHUB_USERNAME_ROBOT:$GITHUB_TOKEN_ROBOT@github.com/NoFussComputing/nodered_ldap_self_service.git" + + + PAGES_ENVIRONMENT_PATH: projects/ldap_self_service/ + +include: + - project: nofusscomputing/projects/gitlab-ci + ref: development + file: + - template/automagic.gitlab-ci.yaml + + +Github (Push --mirror): + extends: + - .git_push_mirror + needs: [] + rules: + - if: $GIT_SYNC_URL == null + when: never + - if: # Always sync including working branches + $CI_PIPELINE_SOURCE == "push" + when: always + - when: never diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cc4d8a5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "gitlab-ci"] + path = gitlab-ci + url = https://gitlab.com/nofusscomputing/projects/gitlab-ci.git + branch = development diff --git a/.nfc_automation.yaml b/.nfc_automation.yaml new file mode 100644 index 0000000..077d7f4 --- /dev/null +++ b/.nfc_automation.yaml @@ -0,0 +1,8 @@ +--- + +role_git_conf: + gitlab: + submodule_branch: "development" + default_branch: development + mr_labels: ~"type::automation" ~"impact::0" ~"priority::0" + auto_merge: true diff --git a/gitlab-ci b/gitlab-ci new file mode 160000 index 0000000..975de7a --- /dev/null +++ b/gitlab-ci @@ -0,0 +1 @@ +Subproject commit 975de7aca210667d1e93d02a4036ca4ae70808ff