From cadd253ad597e69b8a4e18c258351cf455ceb546 Mon Sep 17 00:00:00 2001 From: nyyu Date: Tue, 30 Apr 2024 11:21:20 +0200 Subject: [PATCH] feat: ci --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..6f0df26 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,31 @@ +labels: + backend: docker +steps: + build: + image: golang:1.22.2 + commands: + - git clone --depth 1 https://github.com/openbao/openbao + - cd openbao + - make ci-build + - cp -ar LICENSE Dockerfile dist/bao .release .. + - 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] +