Loading .gitlab-ci.yml +0 −16 Original line number Diff line number Diff line Loading @@ -29,8 +29,6 @@ jobs:c: include: - local: tests/jobs/c.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:docker: stage: test Loading @@ -38,8 +36,6 @@ jobs:docker: include: - local: tests/jobs/docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:docs: stage: test Loading @@ -47,8 +43,6 @@ jobs:docs: include: - local: tests/jobs/docs.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:python: stage: test Loading @@ -56,8 +50,6 @@ jobs:python: include: - local: tests/jobs/python.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS # child pipelines to test our off-the-shelves pipelines pipelines:c: Loading @@ -66,8 +58,6 @@ pipelines:c: include: - local: tests/pipelines/c.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:docker: stage: test Loading @@ -75,8 +65,6 @@ pipelines:docker: include: - local: tests/pipelines/docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:python: stage: test Loading @@ -84,8 +72,6 @@ pipelines:python: include: - local: tests/pipelines/python.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:python&docker: stage: test Loading @@ -93,5 +79,3 @@ pipelines:python&docker: include: - local: tests/pipelines/python-docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS .releaserc +4 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,10 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/gitlab" "@semantic-release/gitlab", ["@semantic-release/git", { "assets": ["README.md", "tbump.toml"] }] ], "branches": [ "+([0-9])?(.{+([0-9]),x}).x", Loading README.md +5 −1 Original line number Diff line number Diff line # Just CI templates # Just CI templates v4.0.1 Maintainers: * Federico Falconieri: @falcorocks Loading Loading @@ -42,6 +42,7 @@ Here is an example `.gitlab-ci.yml` importing the python template: include: - project: 'just-ci/templates' file: 'templates/python.yml' ref: 'v4.0.1' ``` The above is a template for Python projects. Other templates can be found in `templates/`, for example: Loading @@ -58,6 +59,7 @@ Templates and pipelines may come with jobs you don't want/need to run. We have c include: - project: 'just-ci/templates' file: 'templates/python.yml' ref: 'v4.0.1' python:pytest: rules: Loading Loading @@ -90,6 +92,7 @@ Use [child pipelines](https://docs.gitlab.com/ee/ci/pipelines/parent_child_pipel include: - project: 'just-ci/templates' templates: 'templates/docker.yml' ref: 'v4.0.1' # root image will build fine without any further change needed # child pipeline for second docker image Loading @@ -110,6 +113,7 @@ second-image: include: - project: 'just-ci/templates' file: 'templates/docker.yml' ref: 'v4.0.1' variables: KANIKO_REGISTRY_IMAGE: ${CI_REGISTRY_IMAGE}/second-image Loading docker/kaniko.yml +0 −1 Original line number Diff line number Diff line Loading @@ -22,4 +22,3 @@ kaniko: script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json - /kaniko/executor --cache=${KANIKO_CACHE} --context=${KANIKO_CONTEXT} --dockerfile=${KANIKO_DOCKERFILE} --destination=${KANIKO_REGISTRY_IMAGE}:${KANIKO_DEV_TAG} --destination=${KANIKO_REGISTRY_IMAGE}:${KANIKO_TAG} ${LABELS} ${KANIKO_EXTRA_ARGS} needs: [] tbump.toml 0 → 100644 +17 −0 Original line number Diff line number Diff line [version] current = "4.0.1" regex = ''' (?P<major>\d+) \. (?P<minor>\d+) \. (?P<patch>\d+) ''' [git] message_template = "Bump to {new_version}" tag_template = "v{new_version}" [[file]] src = "README.md" Loading
.gitlab-ci.yml +0 −16 Original line number Diff line number Diff line Loading @@ -29,8 +29,6 @@ jobs:c: include: - local: tests/jobs/c.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:docker: stage: test Loading @@ -38,8 +36,6 @@ jobs:docker: include: - local: tests/jobs/docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:docs: stage: test Loading @@ -47,8 +43,6 @@ jobs:docs: include: - local: tests/jobs/docs.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS jobs:python: stage: test Loading @@ -56,8 +50,6 @@ jobs:python: include: - local: tests/jobs/python.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS # child pipelines to test our off-the-shelves pipelines pipelines:c: Loading @@ -66,8 +58,6 @@ pipelines:c: include: - local: tests/pipelines/c.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:docker: stage: test Loading @@ -75,8 +65,6 @@ pipelines:docker: include: - local: tests/pipelines/docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:python: stage: test Loading @@ -84,8 +72,6 @@ pipelines:python: include: - local: tests/pipelines/python.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS pipelines:python&docker: stage: test Loading @@ -93,5 +79,3 @@ pipelines:python&docker: include: - local: tests/pipelines/python-docker.yml strategy: depend rules: - if: $CI_OPEN_MERGE_REQUESTS
.releaserc +4 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,10 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/gitlab" "@semantic-release/gitlab", ["@semantic-release/git", { "assets": ["README.md", "tbump.toml"] }] ], "branches": [ "+([0-9])?(.{+([0-9]),x}).x", Loading
README.md +5 −1 Original line number Diff line number Diff line # Just CI templates # Just CI templates v4.0.1 Maintainers: * Federico Falconieri: @falcorocks Loading Loading @@ -42,6 +42,7 @@ Here is an example `.gitlab-ci.yml` importing the python template: include: - project: 'just-ci/templates' file: 'templates/python.yml' ref: 'v4.0.1' ``` The above is a template for Python projects. Other templates can be found in `templates/`, for example: Loading @@ -58,6 +59,7 @@ Templates and pipelines may come with jobs you don't want/need to run. We have c include: - project: 'just-ci/templates' file: 'templates/python.yml' ref: 'v4.0.1' python:pytest: rules: Loading Loading @@ -90,6 +92,7 @@ Use [child pipelines](https://docs.gitlab.com/ee/ci/pipelines/parent_child_pipel include: - project: 'just-ci/templates' templates: 'templates/docker.yml' ref: 'v4.0.1' # root image will build fine without any further change needed # child pipeline for second docker image Loading @@ -110,6 +113,7 @@ second-image: include: - project: 'just-ci/templates' file: 'templates/docker.yml' ref: 'v4.0.1' variables: KANIKO_REGISTRY_IMAGE: ${CI_REGISTRY_IMAGE}/second-image Loading
docker/kaniko.yml +0 −1 Original line number Diff line number Diff line Loading @@ -22,4 +22,3 @@ kaniko: script: - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json - /kaniko/executor --cache=${KANIKO_CACHE} --context=${KANIKO_CONTEXT} --dockerfile=${KANIKO_DOCKERFILE} --destination=${KANIKO_REGISTRY_IMAGE}:${KANIKO_DEV_TAG} --destination=${KANIKO_REGISTRY_IMAGE}:${KANIKO_TAG} ${LABELS} ${KANIKO_EXTRA_ARGS} needs: []
tbump.toml 0 → 100644 +17 −0 Original line number Diff line number Diff line [version] current = "4.0.1" regex = ''' (?P<major>\d+) \. (?P<minor>\d+) \. (?P<patch>\d+) ''' [git] message_template = "Bump to {new_version}" tag_template = "v{new_version}" [[file]] src = "README.md"