Every Linux step now runs under ci/guard-step.py. The first step that fails, is cancelled or times out marks the pipeline; running steps get SIGTERM (so traps release flock and Buildah state) then SIGKILL, steps that have not started exit at once, and any process a step leaves behind is killed. A pipeline deadline is the last resort. build-linux-agent.sh now prints the lookup error, store configuration and the restore images present when the prepared restore image cannot be found.
65 lines
1.6 KiB
YAML
65 lines
1.6 KiB
YAML
labels:
|
|
ci: domain-linux-native
|
|
platform: linux/amd64
|
|
|
|
clone:
|
|
- name: git
|
|
image: plugin-git
|
|
settings:
|
|
lfs: false
|
|
tags: true
|
|
|
|
when:
|
|
- event: tag
|
|
ref: refs/tags/v*
|
|
|
|
concurrency: 1
|
|
|
|
steps:
|
|
- name: restore-linux-dependencies
|
|
image: bash
|
|
environment:
|
|
NUGET_PACKAGES: /home/justme/woodpecker/cache/nuget/packages
|
|
commands:
|
|
- python3 ci/guard-step.py restore-linux-dependencies 3600 bash ci/restore-linux-dependencies.sh agent
|
|
depends_on: []
|
|
|
|
- name: build-arm64-agent-musl
|
|
image: bash
|
|
environment:
|
|
GITEA_BASE: http://127.0.0.1:3100
|
|
GITEA_TOKEN:
|
|
from_secret: gitea_token
|
|
RELEASE_SIGNING_KEY:
|
|
from_secret: release_signing_key
|
|
commands:
|
|
- python3 ci/guard-step.py build-arm64-agent-musl 3600 bash ci/build-linux-agent.sh linux-musl-arm64
|
|
depends_on:
|
|
- restore-linux-dependencies
|
|
|
|
- name: build-amd64-agent
|
|
image: bash
|
|
environment:
|
|
GITEA_BASE: http://127.0.0.1:3100
|
|
GITEA_TOKEN:
|
|
from_secret: gitea_token
|
|
RELEASE_SIGNING_KEY:
|
|
from_secret: release_signing_key
|
|
commands:
|
|
- python3 ci/guard-step.py build-amd64-agent 3600 bash ci/build-linux-agent.sh linux-x64
|
|
depends_on:
|
|
- restore-linux-dependencies
|
|
|
|
- name: build-arm64-agent
|
|
image: bash
|
|
environment:
|
|
GITEA_BASE: http://127.0.0.1:3100
|
|
GITEA_TOKEN:
|
|
from_secret: gitea_token
|
|
RELEASE_SIGNING_KEY:
|
|
from_secret: release_signing_key
|
|
commands:
|
|
- python3 ci/guard-step.py build-arm64-agent 3600 bash ci/build-linux-agent.sh linux-arm64
|
|
depends_on:
|
|
- restore-linux-dependencies
|