Skip to content

Commit

Permalink
feat: add goreleaser image to ArtifactHub (#2855)
Browse files Browse the repository at this point in the history
* feat: add goreleaser image to ArtifactHub

* feat: add goreleaser image to ArtifactHub
  • Loading branch information
Engin Diri committed Jan 30, 2022
1 parent ca361f6 commit dde453c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .goreleaser.yaml
@@ -1,5 +1,7 @@
env:
- GO111MODULE=on
- DESCRIPTION="Deliver Go binaries as fast and easily as possible"
- README_URL="https://raw.githubusercontent.com/goreleaser/goreleaser/main/README.md"

before:
hooks:
Expand Down Expand Up @@ -69,6 +71,8 @@ dockers:
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url={{.Env.README_URL}}"
- "--label=org.opencontainers.image.description={{.Env.DESCRIPTION}}"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
Expand All @@ -84,6 +88,8 @@ dockers:
use: buildx
build_flag_templates:
- "--pull"
- "--label=io.artifacthub.package.readme-url={{.Env.README_URL}}"
- "--label=org.opencontainers.image.description={{.Env.DESCRIPTION}}"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
Expand Down

0 comments on commit dde453c

Please sign in to comment.