Create custom CI pipeline

This commit is contained in:
Elara 2025-02-12 23:37:03 -08:00
parent 0533731f69
commit 3bea564006
2 changed files with 17 additions and 9 deletions

View File

@ -12,6 +12,8 @@ steps:
image: golang:1.23.6
commands:
- go build
when:
event: tag
- name: docker
image: woodpeckerci/plugin-kaniko
@ -49,12 +51,4 @@ steps:
api_key:
from_secret: gitea_token
when:
event: tag
- name: manifest
image: mplatform/manifest-tool
commands:
- manifest-tool push from-args --platforms linux/amd64,linux/arm64,linux/riscv64 --template gitea.elara.ws/elara6331/distrohop:ARCH --tags ${CI_COMMIT_TAG} --target gitea.elara.ws/elara6331/distrohop:latest
when:
event: tag
platform: linux/amd64
event: tag

14
.woodpecker/manifest.yml Normal file
View File

@ -0,0 +1,14 @@
labels:
platform: linux/amd64
steps:
- name: manifest
image: mplatform/manifest-tool
commands:
- manifest-tool push from-args --platforms linux/amd64,linux/arm64,linux/riscv64 --template gitea.elara.ws/elara6331/distrohop:ARCH --tags ${CI_COMMIT_TAG} --target gitea.elara.ws/elara6331/distrohop:latest
when:
- event: tag
platform: linux/amd64
depends_on:
- build