Loading .gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,8 @@ stages: - deployment include: - remote: 'https://jobs.go2scale.io/mkdocs.yml' - remote: 'https://jobs.go2scale.io/pages.yml' - remote: 'https://jobs.r2devops.io/mkdocs.yml' - remote: 'https://jobs.r2devops.io/pages.yml' mkdocs: before_script: Loading Loading @@ -39,12 +39,12 @@ release: JOB=$(basename ${JOB}) for VERSION in jobs/${JOB}/versions/*; do VERSION=$(basename ${VERSION} .md) http --ignore-stdin POST https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases \ http --ignore-stdin POST https://gitlab.com/api/v4/projects/r2devops%2Fhub/releases \ "JOB-TOKEN: ${CI_JOB_TOKEN}" \ tag_name=${JOB}-${VERSION} \ ref=${CI_COMMIT_SHA} \ "description=$(cat jobs/${JOB}/versions/${VERSION}.md)" \ 'assets:={"links": [{"name": "Hub link", "url": "https://jobs.go2scale.io/'"${VERSION}/${JOB}"'.yml"}]}' 'assets:={"links": [{"name": "Hub link", "url": "https://jobs.r2devops.io/'"${VERSION}/${JOB}"'.yml"}]}' done done rules: Loading .gitlab/issue_templates/new_job.md +5 −5 Original line number Diff line number Diff line # New Job <!-- Title should respect this syntax [New job] - {jobname} --> <!-- Sample of usage of this template ➡️ https://gitlab.com/go2scale/hub/-/issues/111 --> <!-- Sample of usage of this template ➡️ https://gitlab.com/r2devops/hub/-/issues/111 --> ## Objective <!-- Summarize concisely the objective expected by this job --> Loading @@ -21,4 +21,4 @@ logs, and code as it's very hard to read otherwise. --> ## Possible stages or labels for this job <!-- Identify Stages and Labels available by checking [the documentation](https://hub.go2scale.io/jobs/) --> <!-- Identify Stages and Labels available by checking [the documentation](https://r2devops.io/jobs/) --> Pipelines/kubernetes.gitlab-ci.yml +7 −7 Original line number Diff line number Diff line # ############################ # Go2Scale DevSecOps template # R2Devops DevSecOps template # ############################ # # Some variables must be defined in your CI/CD settings # (https://docs.gitlab.com/ee/ci/variables/#creating-a-custom-environment-variable): # * DOCKER_AUTH_CONFIG: docker auth configuration to access Go2Scale images # * DOCKER_AUTH_CONFIG: docker auth configuration to access R2Devops images # * BOT_TOKEN: Secret token of bot user to interact with Gitlab API # * TEMPLATES_REPO_PASSWORD: If needed, secret password (or token) # with read access to templates repository Loading @@ -16,7 +16,7 @@ image: alpine:latest variables: DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" # https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 # Go2Scale global variables # R2Devops global variables BOT_USER_ID: '' # TODO: use your own BOT ID TEMPLATES_REPO_URL: 'gitlab.com/go2scale/templates.git' GITLAB_URL: $CI_SERVER_URL Loading @@ -34,10 +34,10 @@ include: # Gitlab AutoDevops - template: Jobs/Build.gitlab-ci.yml - template: Security/Container-Scanning.gitlab-ci.yml # Go2Scale DevSecOps - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/quality_check.gitlab-ci.yml - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/documentation.gitlab-ci.yml - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/helm.gitlab-ci.yml # R2Devops DevSecOps - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/quality_check.gitlab-ci.yml - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/documentation.gitlab-ci.yml - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/helm.gitlab-ci.yml container_scanning: stage: review README.md +4 −4 Original line number Diff line number Diff line # Go2Scale hub # R2Devops HUB ## Description **Go2Scale hub** is a collaborative hub of CI & CD **ready to use** jobs which **R2Devops HUB** is a collaborative hub of CI & CD **ready to use** jobs which helps you to quickly build powerful pipelines for your projects. Loading @@ -10,7 +10,7 @@ Each jobs of the hub can be used independently or to create fully **customized p You can use them for any kind of software and deployment type. Each job can be customized through configuration. Check the [documentation](https://hub.go2scale.io) 📚 Check the [documentation](https://r2devops.io) 📚 ## How to update the documentation Loading @@ -31,7 +31,7 @@ pip install mkdocs-material mkdocs-minify-plugin mkdocs-git-revision-date-locali Clone the repository locally ```shell git clone git@gitlab.com:go2scale/hub.git git clone git@gitlab.com:r2devops/hub.git cd hub ``` Loading builder/builder.py +4 −4 Original line number Diff line number Diff line #!/usr/bin/env python3 # This script is used to build the documentation that # hub.go2scale.com will be using for every job added to the hub # r2devops.io will be using for every job added to the hub # Directory skeleton for a job: # ── jobs Loading Loading @@ -29,7 +29,7 @@ JOB_DESCRIPTION_FILE = "README.md" JOB_METADATA_FILE = "job.yml" GITLAB_API_URL = "https://gitlab.com/api/v4/" GO2SCALE_URL = "https://jobs.go2scale.io/" R2DEVOPS_URL = "https://jobs.r2devops.io/" # Templates variables BUILDER_DIR = "builder" Loading Loading @@ -63,14 +63,14 @@ def get_changelogs(job_path, job_name): versions.reverse() latest = { "version": versions[0][0:-3], "url": GO2SCALE_URL + job_name + ".yml" "url": R2DEVOPS_URL + job_name + ".yml" } changelogs = [] for version in versions: with open(job_path + "/" + JOB_CHANGELOG_DIR + "/" + version) as changelog_file: changelogs.append({ "version": version[0:-3], "url": GO2SCALE_URL + version[0:-3] + "/" + job_name + ".yml", "url": R2DEVOPS_URL + version[0:-3] + "/" + job_name + ".yml", "changelog": changelog_file.readlines() }) return (latest, changelogs) Loading Loading
.gitlab-ci.yml +4 −4 Original line number Diff line number Diff line Loading @@ -4,8 +4,8 @@ stages: - deployment include: - remote: 'https://jobs.go2scale.io/mkdocs.yml' - remote: 'https://jobs.go2scale.io/pages.yml' - remote: 'https://jobs.r2devops.io/mkdocs.yml' - remote: 'https://jobs.r2devops.io/pages.yml' mkdocs: before_script: Loading Loading @@ -39,12 +39,12 @@ release: JOB=$(basename ${JOB}) for VERSION in jobs/${JOB}/versions/*; do VERSION=$(basename ${VERSION} .md) http --ignore-stdin POST https://gitlab.com/api/v4/projects/go2scale%2Fhub/releases \ http --ignore-stdin POST https://gitlab.com/api/v4/projects/r2devops%2Fhub/releases \ "JOB-TOKEN: ${CI_JOB_TOKEN}" \ tag_name=${JOB}-${VERSION} \ ref=${CI_COMMIT_SHA} \ "description=$(cat jobs/${JOB}/versions/${VERSION}.md)" \ 'assets:={"links": [{"name": "Hub link", "url": "https://jobs.go2scale.io/'"${VERSION}/${JOB}"'.yml"}]}' 'assets:={"links": [{"name": "Hub link", "url": "https://jobs.r2devops.io/'"${VERSION}/${JOB}"'.yml"}]}' done done rules: Loading
.gitlab/issue_templates/new_job.md +5 −5 Original line number Diff line number Diff line # New Job <!-- Title should respect this syntax [New job] - {jobname} --> <!-- Sample of usage of this template ➡️ https://gitlab.com/go2scale/hub/-/issues/111 --> <!-- Sample of usage of this template ➡️ https://gitlab.com/r2devops/hub/-/issues/111 --> ## Objective <!-- Summarize concisely the objective expected by this job --> Loading @@ -21,4 +21,4 @@ logs, and code as it's very hard to read otherwise. --> ## Possible stages or labels for this job <!-- Identify Stages and Labels available by checking [the documentation](https://hub.go2scale.io/jobs/) --> <!-- Identify Stages and Labels available by checking [the documentation](https://r2devops.io/jobs/) -->
Pipelines/kubernetes.gitlab-ci.yml +7 −7 Original line number Diff line number Diff line # ############################ # Go2Scale DevSecOps template # R2Devops DevSecOps template # ############################ # # Some variables must be defined in your CI/CD settings # (https://docs.gitlab.com/ee/ci/variables/#creating-a-custom-environment-variable): # * DOCKER_AUTH_CONFIG: docker auth configuration to access Go2Scale images # * DOCKER_AUTH_CONFIG: docker auth configuration to access R2Devops images # * BOT_TOKEN: Secret token of bot user to interact with Gitlab API # * TEMPLATES_REPO_PASSWORD: If needed, secret password (or token) # with read access to templates repository Loading @@ -16,7 +16,7 @@ image: alpine:latest variables: DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" # https://gitlab.com/gitlab-org/gitlab-runner/issues/4501 # Go2Scale global variables # R2Devops global variables BOT_USER_ID: '' # TODO: use your own BOT ID TEMPLATES_REPO_URL: 'gitlab.com/go2scale/templates.git' GITLAB_URL: $CI_SERVER_URL Loading @@ -34,10 +34,10 @@ include: # Gitlab AutoDevops - template: Jobs/Build.gitlab-ci.yml - template: Security/Container-Scanning.gitlab-ci.yml # Go2Scale DevSecOps - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/quality_check.gitlab-ci.yml - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/documentation.gitlab-ci.yml - remote: https://gitlab.com/go2scale/jobs/raw/2020-03-05_3/jobs/helm.gitlab-ci.yml # R2Devops DevSecOps - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/quality_check.gitlab-ci.yml - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/documentation.gitlab-ci.yml - remote: https://gitlab.com/r2devops/jobs/raw/2020-03-05_3/jobs/helm.gitlab-ci.yml container_scanning: stage: review
README.md +4 −4 Original line number Diff line number Diff line # Go2Scale hub # R2Devops HUB ## Description **Go2Scale hub** is a collaborative hub of CI & CD **ready to use** jobs which **R2Devops HUB** is a collaborative hub of CI & CD **ready to use** jobs which helps you to quickly build powerful pipelines for your projects. Loading @@ -10,7 +10,7 @@ Each jobs of the hub can be used independently or to create fully **customized p You can use them for any kind of software and deployment type. Each job can be customized through configuration. Check the [documentation](https://hub.go2scale.io) 📚 Check the [documentation](https://r2devops.io) 📚 ## How to update the documentation Loading @@ -31,7 +31,7 @@ pip install mkdocs-material mkdocs-minify-plugin mkdocs-git-revision-date-locali Clone the repository locally ```shell git clone git@gitlab.com:go2scale/hub.git git clone git@gitlab.com:r2devops/hub.git cd hub ``` Loading
builder/builder.py +4 −4 Original line number Diff line number Diff line #!/usr/bin/env python3 # This script is used to build the documentation that # hub.go2scale.com will be using for every job added to the hub # r2devops.io will be using for every job added to the hub # Directory skeleton for a job: # ── jobs Loading Loading @@ -29,7 +29,7 @@ JOB_DESCRIPTION_FILE = "README.md" JOB_METADATA_FILE = "job.yml" GITLAB_API_URL = "https://gitlab.com/api/v4/" GO2SCALE_URL = "https://jobs.go2scale.io/" R2DEVOPS_URL = "https://jobs.r2devops.io/" # Templates variables BUILDER_DIR = "builder" Loading Loading @@ -63,14 +63,14 @@ def get_changelogs(job_path, job_name): versions.reverse() latest = { "version": versions[0][0:-3], "url": GO2SCALE_URL + job_name + ".yml" "url": R2DEVOPS_URL + job_name + ".yml" } changelogs = [] for version in versions: with open(job_path + "/" + JOB_CHANGELOG_DIR + "/" + version) as changelog_file: changelogs.append({ "version": version[0:-3], "url": GO2SCALE_URL + version[0:-3] + "/" + job_name + ".yml", "url": R2DEVOPS_URL + version[0:-3] + "/" + job_name + ".yml", "changelog": changelog_file.readlines() }) return (latest, changelogs) Loading