Table des matières

Notes gitlab-ci pipeline

Voir :

Voir aussi:

Exemples

configure:
  stage: configure
  image: $BUILDER
  needs:
    - build
  script:
    - echo Starting
    - plop.sh
  when: manual

Test CI/DI

Créons un projet avec à la racine un fichier .gitlab-ci.yml

.gitlab-ci.yml

job1:
  stage: test
  script: echo 'my first job'

NOTE : stages available are :

Voir : https://docs.gitlab.com/ee/ci/yaml/README.html

Ou nous pouvons le redéfinir :

stages:
  build
  test
  deploy

Pour tester en local

gitlab-runner exec shell job1

Secure file

# CI_API_V4_URL='https://gitlab.acme.fr/api/v4'
# CI_PROJECT_ID=58
# TOKEN_PLOP=plop
curl --request GET --header "PRIVATE-TOKEN: ${TOKEN_PLOP}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/secure_files/1/download" --output key'

Skip CI

Commit message :
[ci skip] or [skip ci]

Alternatively, one can pass the ci.skip Git push option if using Git 2.10 or newer:

git push -o ci.skip

Autres

Voir

requirements.txt

Jinja2==2.11.2
j2cli-3==0.0.1
anybadge==1.7.0