Skip to content
Snippets Groups Projects
Select Git revision
  • f6c45dfbeca155cf051d875ac806c0744691929c
  • master default protected
  • 6
  • 6.1
  • 6.1.7
  • 6.1.6
  • 6.1.5
  • 6.1.4
  • 6.1.3
  • 6.1.2
  • 6.1.1
  • 6.1.0
  • 6.0
  • 6.0.0
  • 5.14
  • 5.14.1
  • 5.14.0
  • 5.13
  • 5.13.3
  • 5.13.2
  • 5.13.1
  • 5.13.0
22 results

.gitlab-ci.yml

Blame
  • .gitlab-ci.yml 1.00 KiB
    include:
      - project: 'to-be-continuous/tools/gitlab-ci'
        ref: 'master'
        file: '/templates/validation.yml'
      - project: 'to-be-continuous/kicker'
        ref: 'master'
        file: '/templates/validation.yml'
      - project: 'to-be-continuous/bash'
        ref: '2.0.1'
        file: 'templates/gitlab-ci-bash.yml'
      - project: 'to-be-continuous/semantic-release'
        ref: '2.0.4'
        file: '/templates/gitlab-ci-semrel.yml'    
    
    stages:
      - build
      - publish
    
    variables:
      GITLAB_CI_FILES: "templates/gitlab-ci-docker.yml"
      BASH_SHELLCHECK_FILES: "*.sh"
    
    extract-script:
      stage: .pre
      script:
        - echo "#!/bin/bash" > script.sh
        - sed -n '/BEGSCRIPT/,/ENDSCRIPT/p' "$GITLAB_CI_FILES" | sed 's/^  //' >> script.sh
        - export LC_ALL=C.UTF-8
      artifacts:
        when: always
        name: extracted template script
        expire_in: 1h
        paths:
          - script.sh
    
    semantic-release:
      rules:
        # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
        - if: '$TMPL_RELEASE_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF'