feat: support vendir in common-ci-tasks
vendir
Runs vendir sync
and validates that the committed state matches the
output from the command.
stages:
- validate
variables:
# Override the vendir config file, default is vendir.yml
VENDIR_CONF: vendir.yml
include:
# Check that `vendir sync` is up-to-date and the repository matches the expected state
- project: 'gitlab-com/gl-infra/common-ci-tasks'
ref: v2.41.3 # renovate:managed
file: vendir.yml
vendir
Using a GitLab CI Token in This task will run vendir
and pre-configure a secret called gitlab-token-http-auth
, containing the CI_JOB_TOKEN
for authentication.
This is a vendir
HTTP authentication secret. It can be used with a secretRef
, as follows:
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: vendor
contents:
- path: ...
http:
url: https://gitlab.com/api/v4/...
secretRef:
name: gitlab-token-http-auth
cc @ekelly1 @ggillies as I've had tangential discussions with both of you around this recently.
Edited by Andrew Newdigate