Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add openbao package #30167

Merged
merged 21 commits into from
Oct 9, 2024
Merged
Changes from 19 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions openbao.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
package:
name: openbao
version: 2.0.2
epoch: 0
description: OpenBao exists to provide a software solution to manage, store, and distribute sensitive data including secrets, certificates, and keys.
copyright:
- license: MPL-2.0

# NOTE: openbao UI is not enabled for now ; see https://github.com/openbao/openbao/issues/129
# several sections need to be uncommented to embed UI in the tool

# NOTE: uncomment when enabling embedding of UI
# environment:
# contents:
# packages:
# - busybox
# - ca-certificates-bundle
# - nodejs
# - npm
# - yarn
pipeline:
- uses: git-checkout
with:
repository: https://github.com/openbao/openbao
tag: v${{package.version}}
expected-commit: 96853bb4de27ab8ffd1b0c2898c691460d43edeb
# NOTE: uncomment when enabling embedding of UI
# - runs: |
# make ember-dist

- uses: go/build
with:
# NOTE: add "ui" tag when enabling embedding of UI
tags: "openbao"
packages: .
output: bao
ldflags: |
-X github.com/openbao/openbao/version.fullVersion=${{package.version}}
-X github.com/openbao/openbao/version.GitCommit='$(git rev-parse HEAD)'
-X github.com/openbao/openbao/version.BuildDate='$(git show --no-show-signature -s --format=%cd --date=format:"%Y-%m-%dT%H:%M:%SZ" HEAD)'
- uses: strip

subpackages:
- name: openbao-compat
description: "Compatibility package to allow replacing vault image"
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/bin
ln -sf /usr/bin/bao ${{targets.contextdir}}/bin/bao
ln -sf /bin/bao ${{targets.contextdir}}/bin/vault

update:
enabled: true
github:
identifier: openbao/openbao
strip-prefix: v

test:
pipeline:
- runs: |
bao --version
Loading