goharbor / harbor-scanner-clair

Use Clair as a plug-in vulnerability scanner in the Harbor registry
https://goharbor.io/
Apache License 2.0
34 stars 26 forks source link

Configure GoReleaser environment #5

Closed danielpacak closed 4 years ago

danielpacak commented 4 years ago

The project uses GoReleaser to publish compiled binaries to GitHub release page as well as pushing the Docker image to Docker Hub. Such publishing job is triggered whenever you create an annotated Git tag.

https://github.com/goharbor/harbor-scanner-clair/blob/master/.travis.yml#L30

To keep using GoReleaser, the following environment variables must to be set in Travis.

Environment Variable Description
GITHUB_TOKEN GitHub API token with the repo scope to deploy the artifacts to GitHub
DOCKERHUB_USER DockerHub username
DOCKERHUB_TOKEN DockerHub access token to push images
steven-zou commented 4 years ago

Code checked in, see PR https://github.com/goharbor/harbor-scanner-clair/pull/6