Skip to content
Snippets Groups Projects
Commit 7a8444e20914 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat: add tags to job to allow schedulers optimisation

parent 3aacc5b4644b
No related branches found
No related tags found
2 merge requests!25feat: allow failure when running safety,!24feat: add tags to job to allow schedulers optimisation
Pipeline #94398 passed
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
build-debian: build-debian:
stage: build-debian-package stage: build-debian-package
image: logilab/infra/dockerfiles/buildpackage image: logilab/infra/dockerfiles/buildpackage
tags:
- debian
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
...@@ -22,6 +24,9 @@ ...@@ -22,6 +24,9 @@
upload-deb-to-heptapod: upload-deb-to-heptapod:
stage: upload-deb-to-heptapod stage: upload-deb-to-heptapod
image: curlimages/curl:latest image: curlimages/curl:latest
tags:
- curl
- debian
# May be failling if the deb name is not ${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb # May be failling if the deb name is not ${CI_PROJECT_NAME}_${CI_COMMIT_TAG}-1_all.deb
allow_failure: true allow_failure: true
rules: rules:
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
tags:
- release
- kaniko
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
...@@ -18,6 +21,9 @@ ...@@ -18,6 +21,9 @@
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
tags:
- release
- kaniko
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
...@@ -33,6 +39,9 @@ ...@@ -33,6 +39,9 @@
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
tags:
- release
- kaniko
script: script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor - /kaniko/executor
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
create-release-on-heptapod: create-release-on-heptapod:
stage: release stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
tags:
- release
- release-cli
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
......
...@@ -2,5 +2,8 @@ ...@@ -2,5 +2,8 @@
black: black:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- black
stage: lint stage: lint
script: tox -e black script: tox -e black
...@@ -2,5 +2,8 @@ ...@@ -2,5 +2,8 @@
check-manifest: check-manifest:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- check-manifest
stage: lint stage: lint
script: tox -e check-manifest script: tox -e check-manifest
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
flake8: flake8:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- flake8
stage: lint stage: lint
script: script:
- tox -e flake8 -- --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json - tox -e flake8 -- --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
mypy: mypy:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- mypy
stage: lint stage: lint
allow_failure: true allow_failure: true
script: tox -e mypy script: tox -e mypy
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
interruptible: true interruptible: true
stage: lint stage: lint
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- safety
script: tox -e safety script: tox -e safety
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
yamllint: yamllint:
interruptible: true interruptible: true
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- lint
- yamllint
stage: lint stage: lint
rules: rules:
- changes: - changes:
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
- pip install tox - pip install tox
stage: tests stage: tests
image: python:2.7 image: python:2.7
tags:
- tests
- py2
script: tox -e py27 script: tox -e py27
artifacts: artifacts:
paths: paths:
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
image: ${CI_REGISTRY}/cubicweb/dockerfiles/buster-slim-pg11 image: ${CI_REGISTRY}/cubicweb/dockerfiles/buster-slim-pg11
stage: tests stage: tests
script: tox -e py3 -- --junitxml=report.xml script: tox -e py3 -- --junitxml=report.xml
tags:
- tests
- py3
artifacts: artifacts:
when: always when: always
reports: reports:
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
upload-python-package-to-heptapod: upload-python-package-to-heptapod:
stage: publish stage: publish
image: python image: python
tags:
- publish
- twine
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
pypi-publish: pypi-publish:
stage: publish stage: publish
image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest image: ${CI_REGISTRY}/cubicweb/dockerfiles/python-logilab:latest
tags:
- publish
- pypi-publish
rules: rules:
- if: '$CI_MERGE_REQUEST_ID' - if: '$CI_MERGE_REQUEST_ID'
when: never when: never
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment