35 lines
887 B
YAML
35 lines
887 B
YAML
labels:
|
|
backend: docker
|
|
steps:
|
|
build:
|
|
image: golang:1.22.2-alpine
|
|
commands:
|
|
- apk add --no-cache git make bash yarn npm
|
|
- git clone --depth 1 https://github.com/openbao/openbao
|
|
- cd openbao
|
|
- make ci-build-ui
|
|
- GO_TAGS=ui REMOVE_SYMBOLS=true make ci-build
|
|
- cp -ar LICENSE Dockerfile dist/bao .release ..
|
|
- cd ..
|
|
- rm -rf openbao
|
|
when:
|
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
|
event: [push, manual, tag]
|
|
docker:
|
|
image: docker-public.nyyu.dev/nyyu/plugin-kaniko
|
|
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]
|
|
|