7f3adc5725
ci/woodpecker/pr/build Pipeline failed
woodpecker interpolates ${CI_COMMIT_TAG} into the raw pipeline text before YAML
parsing; when empty, '-t $${IMG}:${CI_COMMIT_TAG} .' collapses to '... : .'
and the colon-space is parsed as a map key ('cannot unmarshal map ... into a
string value'). Quote every buildah command so it stays a scalar.
21 lines
594 B
YAML
21 lines
594 B
YAML
when:
|
|
- event: pull_request
|
|
|
|
steps:
|
|
# PR gate: build the CA-baked plugin image only, no push. buildah runs
|
|
# unprivileged in-cluster, so use the vfs storage driver + chroot isolation.
|
|
- name: build
|
|
image: quay.io/buildah/stable
|
|
commands:
|
|
- "buildah build --isolation chroot --storage-driver vfs -t plugin-docker-buildx:${CI_COMMIT_SHA} ."
|
|
backend_options:
|
|
kubernetes:
|
|
serviceAccountName: plugin-docker-buildx
|
|
resources:
|
|
requests:
|
|
memory: 512Mi
|
|
cpu: 1
|
|
limits:
|
|
memory: 2Gi
|
|
cpu: 2
|