docker-openbao/.woodpecker.yml

35 lines
872 B
YAML
Raw Permalink Normal View History

2024-04-30 11:21:20 +02:00
labels:
backend: docker
steps:
build:
2024-04-30 13:51:53 +02:00
image: golang:1.22.2-alpine
2024-04-30 11:21:20 +02:00
commands:
2024-04-30 13:51:53 +02:00
- apk add --no-cache git make bash yarn npm
2024-04-30 11:21:20 +02:00
- git clone --depth 1 https://github.com/openbao/openbao
- cd openbao
2024-04-30 13:51:53 +02:00
- make ci-build-ui
- GO_TAGS=ui REMOVE_SYMBOLS=true make ci-build
2024-04-30 11:21:20 +02:00
- cp -ar LICENSE Dockerfile dist/bao .release ..
2024-04-30 13:51:53 +02:00
- cd ..
2024-04-30 11:21:20 +02:00
- rm -rf openbao
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: [push, manual, tag]
docker:
2024-05-25 13:32:58 +02:00
image: woodpeckerci/plugin-kaniko
2024-04-30 11:21:20 +02:00
pull: true
settings:
username:
from_secret: registry_username
password:
from_secret: registry_password
repo: ${CI_REPO_OWNER}/openbao
registry: ${DOCKER_REGISTRY}
tags: latest
target: default
build_args: BIN_NAME=bao
when:
branch: ${CI_REPO_DEFAULT_BRANCH}
event: [push, manual, tag]