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

feat(packages): Add Harbor CLI #16368

Merged
merged 1 commit into from Apr 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 40 additions & 0 deletions harbor-cli.yaml
@@ -0,0 +1,40 @@
package:
name: harbor-cli
version: 0.0.1
epoch: 0
description: Official Harbor CLI
copyright:
- license: Apache-2.0
dependencies:
runtime:
- ca-certificates-bundle

pipeline:
- uses: git-checkout
with:
expected-commit: 869986ac0d9444b4f96f85d0d9350ee8e3688780
repository: https://github.com/goharbor/harbor-cli
tag: v${{package.version}}

- uses: go/bump
with:
deps: golang.org/x/net@v0.17.0

- uses: go/build
with:
packages: ./cmd/harbor
output: harbor

- uses: strip

test:
pipeline:
- runs: |
harbor version
harbor help

update:
enabled: true
github:
identifier: goharbor/harbor-cli
strip-prefix: v