jfrog / vault-plugin-secrets-artifactory

HashiCorp Vault Secrets Plugin for Artifactory
https://jfrog.com
Apache License 2.0
42 stars 21 forks source link

GH-67 add version suffix for dev build #74

Closed alexhung closed 1 year ago

alexhung commented 1 year ago

Closes #67

alexhung commented 1 year ago

Now make register returns:

alexh@alexh-mac artifactory-secrets-plugin % make register
go fmt $(go list ./...)
GORELEASER_CURRENT_TAG=0.2.16-dev+bda4942 goreleaser build --single-target --clean --snapshot
  • starting build...
  • loading config file                              file=.goreleaser.yaml
  • building only for darwin/amd64                   reason=single target is enabled
  • loading environment variables
  • getting and validating git state
    • couldn't find any tags before "0.2.16-dev+bda4942"
    • building...                                    commit=bda49425af3f8212bff481713bc4ed074d1b5b43 latest tag=0.2.16-dev+bda4942
    • pipe skipped                                   reason=disabled during snapshot mode
  • parsing tag
  • setting defaults
  • running before hooks
    • running                                        hook=go mod tidy
  • snapshotting
    • building snapshot...                           version=0.2.16-dev+bda4942
  • checking distribution directory
    • cleaning dist
  • loading go mod information
  • build prerequisites
  • writing effective config file
    • writing                                        config=dist/config.yaml
  • building binaries
    • building                                       binary=dist/artifactory-secrets-plugin_darwin_amd64_v1/artifactory-secrets-plugin
    • took: 1s
  • storing release metadata
    • writing                                        file=dist/artifacts.json
    • writing                                        file=dist/metadata.json
  • build succeeded after 1s
vault plugin register -sha256=$(sha256sum dist/artifactory-secrets-plugin_darwin_amd64_v1/artifactory-secrets-plugin | cut -d " " -f 1) -command=artifactory-secrets-plugin secret artifactory-secrets-plugin
Success! Registered plugin: artifactory-secrets-plugin
vault plugin info -version=0.2.16-dev+bda4942 secret artifactory-secrets-plugin
Key                   Value
---                   -----
args                  []
builtin               false
command               artifactory-secrets-plugin
deprecation_status    n/a
name                  artifactory-secrets-plugin
sha256                ee962b259de27c2ac4fcabf38c3a99a069f3c30fca40d36161ed9037a651a512
version               v0.2.16-dev+bda4942
alexhung commented 1 year ago

@TJM ☝🏼