Skip to content

Commit

Permalink
ci: Update goreleaser config for containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Oct 16, 2024
1 parent 18a842e commit 25aeb2e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: mathieudutour/github-tag-action@v6.2
continue-on-error: true # ok to not make a new tag
with:
# Special PAT so that we trigger new workflows
# Special PAT so that we trigger new workflows, that has contents:write only
github_token: ${{ secrets.TAG_TOKEN }}
create_annotated_tag: true
custom_release_rules: ci:none,chore:none,style:none
Expand Down
34 changes: 16 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,47 +32,45 @@ release:
github:
name_template: v{{.Version}}
dockers:
- image_templates: ["ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-amd64"]
- image_templates: ["ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile.goreleaser
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.ref.name="google/mtail"
- --label=org.opencontainers.image.ref.name="jaqx0r/mtail"
- --label=org.opencontainers.image.authors="Jamie Wilkinson (@jaqx0r)"
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.description="extract internal monitoring data from application logs for collection in a timeseries database"
- --label=org.opencontainers.image.documentation="https://google.github.io/mtail/"
- --label=org.opencontainers.image.documentation="https://jaqx0r.github.io/mtail/"
- --label=org.opencontainers.image.licenses="Apache-2.0"
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/google/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/jaqx0r/{{ .ProjectName }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/google/{{ .ProjectName }}
- --label=org.opencontainers.image.vendor="Google"
- --label=org.opencontainers.image.url=https://github.com/jaqx0r/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- image_templates: ["ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
- image_templates: ["ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
goarch: arm64
dockerfile: Dockerfile.goreleaser
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.ref.name="google/mtail"
- --label=org.opencontainers.image.ref.name="jaqx0r/mtail"
- --label=org.opencontainers.image.authors="Jamie Wilkinson (@jaqx0r)"
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.description="extract internal monitoring data from application logs for collection in a timeseries database"
- --label=org.opencontainers.image.documentation="https://google.github.io/mtail/"
- --label=org.opencontainers.image.documentation="https://jaqx0r.github.io/mtail/"
- --label=org.opencontainers.image.licenses="Apache-2.0"
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.source=https://github.com/google/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/jaqx0r/{{ .ProjectName }}
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/google/{{ .ProjectName }}
- --label=org.opencontainers.image.vendor="Google"
- --label=org.opencontainers.image.url=https://github.com/jaqx0r/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
docker_manifests:
- name_template: ghcr.io/google/{{ .ProjectName }}:{{ .Version }}
- name_template: ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/google/{{ .ProjectName }}:latest
- ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/jaqx0r/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/google/{{ .ProjectName }}:{{ .Version }}-arm64v8
- ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/jaqx0r/{{ .ProjectName }}:{{ .Version }}-arm64v8

0 comments on commit 25aeb2e

Please sign in to comment.