60 lines
1.4 KiB
YAML
60 lines
1.4 KiB
YAML
labels:
|
||
ci: domain-linux-native
|
||
platform: linux/amd64
|
||
|
||
clone:
|
||
- name: git
|
||
image: plugin-git
|
||
settings:
|
||
lfs: false
|
||
|
||
when:
|
||
- event: tag
|
||
ref: refs/tags/v*
|
||
|
||
concurrency: 1
|
||
|
||
steps:
|
||
- name: linux-amd64-backend
|
||
image: bash
|
||
environment:
|
||
NUGET_PACKAGES: /home/justme/.nuget/packages
|
||
ZOT_REGISTRY: registry.oeo.one
|
||
ZOT_USERNAME: justme
|
||
ZOT_SECRET:
|
||
from_secret: zot_secret
|
||
commands:
|
||
- bash ci/release-linux.sh amd64 backend
|
||
depends_on: []
|
||
|
||
- name: linux-arm64-backend
|
||
image: bash
|
||
environment:
|
||
NUGET_PACKAGES: /home/justme/.nuget/packages
|
||
ZOT_REGISTRY: registry.oeo.one
|
||
ZOT_USERNAME: justme
|
||
ZOT_SECRET:
|
||
from_secret: zot_secret
|
||
commands:
|
||
# 两个架构共用一个工作目录:amd64 先构建并生成前端产物,arm64 在它之后(并行会同时 npm ci,互相删 node_modules)
|
||
- bash ci/release-linux.sh arm64 backend
|
||
depends_on:
|
||
- linux-amd64-backend
|
||
|
||
- name: backend-multiarch-index
|
||
image: bash
|
||
environment:
|
||
ZOT_REGISTRY: registry.oeo.one
|
||
ZOT_SCHEME: https
|
||
ZOT_USERNAME: justme
|
||
ZOT_SECRET:
|
||
from_secret: zot_secret
|
||
RELEASE_API_URL: https://mo.oeo.one
|
||
RELEASE_SIGNING_KEY:
|
||
from_secret: release_signing_key
|
||
commands:
|
||
- bash ci/index-backend-image.sh
|
||
depends_on:
|
||
- linux-amd64-backend
|
||
- linux-arm64-backend
|