Commit Graph

127 Commits

Author SHA1 Message Date
3096d7ee0a ci(markdown_lint): Added Linting of Markdown for files in this repository.
THis is required as the md files will be used for docs.

MR !15
2022-01-24 14:49:36 +09:30
Jon
b6dcb47b1d docs(markdown_lint): removed no longer needed requirement.
MR !15
2022-01-24 05:14:54 +00:00
a2d705deb1 ci(mkdcos): mkdocs requirements.txt had a '\n' in the filename. renamed.
this name was added using the gitlab interface. it should have been sanitized.

MR !15
2022-01-24 14:08:14 +09:30
39a76a0869 ci(dependency_scanning): delete all python 'requirements.txt' files that are not the specified one to be scanned.
Due to a bug reported in gitlab-org/gitlab#350949, variable 'PIP_REQUIREMENTS_FILE'
does not set the pipfile to be scanned, as a consequence, the first found
pipfile is scanned.

MR !15
2022-01-24 14:07:59 +09:30
4e1da5e872 ci(dependency_scanning): python 3.7 not available for dependecy scanning.
Disable the updates for ansible modules that are only available for
python 3.7/3.8 and above.

MR !15
2022-01-24 13:37:23 +09:30
a6afa76600 ci(dependency_scanning): increase python version to 3.7
MR !15
2022-01-24 13:25:15 +09:30
7153f9b425 ci(dependency_scanning): check python version as pillow 9.0 reported as not found.
MR !15
2022-01-24 13:22:28 +09:30
996ee64ab4 ci(dependency_scanning): scanner set to use python 3.6
MR !15
2022-01-24 13:17:38 +09:30
Jon
725bfaf829 ci: debug logging for dep scanning
MR !15
2022-01-23 08:56:58 +00:00
Jon
b844083207 chore: test wich path works for specifying pip file.
MR !15
2022-01-23 07:56:05 +00:00
Jon
41c5e0ca82 chore: remove dependency scan rules not required
MR !15
2022-01-23 07:50:01 +00:00
Jon
2fffa866d8 ci(python_dependency_scan): disabled main job and manual setup for all ci jobs.
Python dependency scan does not work for multiple pip files. Had to setup manual jobs.

MR !15
2022-01-23 07:36:49 +00:00
Jon
6668c2fb8d refactor: test specifying must equal.
MR !15
2022-01-23 07:14:32 +00:00
Jon
fd48316ae7 docs(markdown_lint): updated docs on how to use and view rules.
MR !15
2022-01-23 06:53:57 +00:00
Jon
9ab336fbdd feat(markdown_lint): include junit configuration file '.markdownlint-cli2.jsonc' in ci job.
MR !15
2022-01-23 06:48:42 +00:00
Jon
e46dc57b16 chore(markdown_lint): add empty junit test file.
MR !15
2022-01-23 06:39:23 +00:00
Jon
0df60b12db fix(ansible): remove duplicate lines that last code review didn't remove.
MR !15
2022-01-23 06:12:35 +00:00
Jon
484d98792a fix(ansible): fix typo in job pip file
MR !15
2022-01-23 05:57:43 +00:00
Jon
e1894ec0c4 fix(dependency_scanning): upgraded versions from vulnerability scan.
MR !15
2022-01-23 05:46:31 +00:00
Jon
906f09e2d3 feat(mkdocs_build): use a pip file for job so that licence scanning can function.
MR !15
2022-01-23 05:31:06 +00:00
Jon
18c2e23128 chore(mkdocs): move mkdocs jobs to its own directory.
MR ;15
2022-01-23 05:18:27 +00:00
Jon
83cce72af2 ci(licence_finder): set to recursive scan so all licence's can be detected.
MR !15
2022-01-23 05:02:52 +00:00
Jon
5a41962a99 feat(mkdocs_build): move ci job dependencies to a pip file so that the ci dependency job can check versions.
MR !15
2022-01-23 04:25:35 +00:00
Jon
7665e512a5 chore: add mkdocs dir for pip file.
MR !15
2022-01-23 04:22:38 +00:00
Jon
fc816192be ci(scanners): Added dependency and licence scanners
MR !15
2022-01-23 04:16:34 +00:00
Jon
5c872f163e ci: Added a test stage for gitlab specific tests.
MR !15
2022-01-23 04:10:03 +00:00
Jon
2115964317 chore: review fixes.
MR !1
2022-01-23 03:21:43 +00:00
Jon
e0d8885d52 ci(artifacts): markdown lint and mkdocs build artifacts to expire after 24 hours
MR !15
2022-01-23 03:19:58 +00:00
Jon
347597e3c1 docs(mkdocs_build): include mandatory vars in template ci file.
MR !15
2022-01-23 03:18:34 +00:00
1ef0e2245f docs(mkdocs): Completed the mkdocs build readme
fixes #15 !15
2022-01-23 11:07:47 +09:30
6363ea377c docs(markdown_lint): completed the job docs.
fixes #12
2022-01-23 11:05:07 +09:30
5c05ed7605 docs(mkdocs): initial adding of mkdocs build readme.
MR !15 #5
2022-01-23 10:55:42 +09:30
6383cde3bf docs(markdown_lint): initial adding of the docs
MR !15 #12
2022-01-23 10:43:54 +09:30
50b5e8542b feat(build): initial add of mkdocs build job
builds a mkdocs static pages using the repositories requirements.txt
for extensions and ONLY if a mkdocs.yml file is present in the root directory
of the repository.

MR !15 #15
2022-01-23 10:31:14 +09:30
954aa28dbf feat(validation): Added a Markdown linting validation job.
MR !15 #12
2022-01-23 10:03:02 +09:30
bc67e939fa chore: initial add of build and validation jobs for mkdocs and markdown linting
copied from nofusscomputing/infrastructure/website/3dd3130a037b4ee7c3b55d3961e68703c5e5d49c

MR !15 #12 #15
2022-01-23 09:52:30 +09:30
1ef6c41818 build(version): bump version 0.4.0 → 0.5.0 v0.5.0 2022-01-16 00:09:42 +00:00
Jon
1093b380cb Merge branch '6-fix-merging-jobs-failing' into 'development'
fix: merge jobs failing

See merge request nofusscomputing/projects/gitlab-ci!13
2022-01-16 00:05:29 +00:00
f4670844cc docs(README.md): Added project header template
MR !13
2022-01-16 09:23:54 +09:30
140985c3a4 feat(.yaml_lint_defaults): Always run on all branches as this denotes quality.
must run on all branches as quality is an expectation that should be displayed
for all branches.

MR !13
2022-01-16 09:04:52 +09:30
82c6c9f5d5 feat(commit_footer_refs): never run on development or master.
this job checks for gitlab references in the commit footer. It
has been stopped from running on dev and master as checks are already
done on the developers branch that is being worked on prior to the
merging to dev or master branches.

MR !13
2022-01-16 09:02:44 +09:30
31517b4bf0 ci(MR_Title): save the merge request title as a variable and debug output in job log.
job now stores the fetched MR title in a variable that is output to the
job log for end user to view in job log.

MR !13
2022-01-16 09:02:02 +09:30
73918f2f5e fix(commit.py): filter merge request search to 'opened' and on current branch.
Merge request search now filters to 'opened' and to ones on the current branch.
if none were found, outputs 'ci: No Merge Request found, MR count "0"'

any other error with finding the merge request will output
'failed to fetch Merge Request title' this enables further debugging for
potential errors.

fixes #6 !13
2022-01-16 08:48:24 +09:30
5c9000a748 build(version): bump version 0.3.1 → 0.4.0 v0.4.0 2022-01-15 03:53:53 +00:00
Jon
745622c214 Merge branch '6-10-11-fix-bugs' into 'development'
fix: numerous bugs

See merge request nofusscomputing/projects/gitlab-ci!12
2022-01-15 03:50:56 +00:00
e5531fc77b feat(commit.py): throw an error if no token was supplied. i.e. empty variable.
A check is done on the supplied token,
if 'None', throws an error that can be viewed in the output log and
in the job output.

fixes #11 !12
2022-01-15 13:14:58 +09:30
6b7ad95fc0 feat(commit.py): confirm a merge request was found, if not output 'ci: No Merge Request found'
issue #11 !12
2022-01-15 13:07:56 +09:30
c543c47af8 feat(commit.py): try to us CI_JOB_TOKEN before the specified token, if any.
issue #11 !12
2022-01-15 13:05:30 +09:30
99bdc2a092 fix(commit.py): fix typo that caused exception
issue #6 !12
2022-01-15 12:29:23 +09:30
d03d9fefc9 fix(conventional_commits): fetch all branches prior to check for parent branch
issue #6 !12
2022-01-15 12:23:54 +09:30