Skip to content
Snippets Groups Projects
Commit ca563c53 authored by Maina Ng'ang'a's avatar Maina Ng'ang'a 😀
Browse files

feat: add job_image and job_allow_failure to input

Adding job_image and job_allow_failure to input will make these fields
configurable.

enable ruby version to be updated using renovate

adding `expand_vars`

feat: add job_image and job_allow_failure to input

Adding job_image and job_allow_failure to input will make these fields
configurable.

adding `.gitlab-ci-other-versions.yml`
parent 0f377298
No related branches found
No related tags found
No related merge requests found
Pipeline #23744833 passed
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