Files
ci-scripts/generator/templates/matrix/build-explicit-clone.yaml.tmpl

37 lines
789 B
Cheetah

labels:
arch: {fixed_label}
clone:
- name: clone
image: woodpeckerci/plugin-git
environment:
CI_NETRC_MACHINE: {git_host}
CI_NETRC_USERNAME: oleks
CI_NETRC_PASSWORD:
from_secret: gitea_clone_token
PLUGIN_TAGS: "false"
PLUGIN_DEPTH: "1"
when:
- event: tag
ref: "refs/tags/v*"
{timeout_block}
{header}
matrix:
{var_name}:
{arch_list}
steps:
- name: build-${{{var_name}}}
image: {image}
environment:
REGISTRY_TOKEN:
from_secret: registry_token
BUILDKIT_ADDR: "tcp://{buildkit_prefix}-${{{var_name}}}.infra.svc.cluster.local:1234"
PUBLISH: "1"
commands:
- echo "▸ arch=$(uname -m)"
- {script} --arch "${{{var_name}}}"
backend_options:
kubernetes:
{node_selector_block}