Skip to content
Snippets Groups Projects
Commit e788832a authored by Andrew Newdigate's avatar Andrew Newdigate
Browse files

Merge branch 'adding-configurable-input' into 'main'

feat(danger): add job_image and job_allow_failure to input

See merge request gitlab-com/gl-infra/common-ci-tasks!827
parents 0f377298 ca563c53
No related branches found
No related tags found
No related merge requests found
Pipeline #23745108 failed
Loading
Loading
@@ -8,12 +8,21 @@ spec:
bundler_group:
default: ""
description: 'When using a Gemfile, install dependencies from this group.'
job_image:
default: "ruby:${GL_COMMON_RENOVATE_RUBY_VERSION}"
description: 'The image to use for the `danger-review` job, defaults to `GL_COMMON_RENOVATE_RUBY_VERSION`'
job_allow_failure:
default: false
type: boolean
description: 'Whether or not the job is allowed to fail'
 
---
include:
- local: .gitlab-ci-other-versions.yml
 
# Taken from https://gitlab.com/gitlab-org/components/danger-review
danger-review:
image: ruby:3.2.3
image: $[[ inputs.job_image | expand_vars ]]
id_tokens:
VAULT_ID_TOKEN:
aud: https://vault.gitlab.net
Loading
Loading
@@ -24,6 +33,7 @@ danger-review:
token: $VAULT_ID_TOKEN
stage: $[[ inputs.stage ]]
needs: []
allow_failure: $[[ inputs.job_allow_failure ]]
retry:
max: 2
when:
Loading
Loading
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