Skip to content

Commit

Permalink
ci: reworking the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
noandrea committed Jun 23, 2024
1 parent 8e32051 commit dd3bbdd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 42 deletions.
43 changes: 5 additions & 38 deletions .github/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ builds:
goarch:
- amd64
- arm64
hooks:
post: "go run main.go update latest"
changelog:
use: git
groups:
Expand All @@ -45,7 +47,8 @@ dockers:
goos: linux
goarch: amd64
image_templates:
- "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}-amd64"
- "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:latest"
- "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}"
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
Expand All @@ -54,40 +57,4 @@ dockers:
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- tzdata
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}-arm64v8"
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- tzdata
docker_manifests:
- name_template: ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/{{ .Env.GITHUB_ORG }}/{{ .ProjectName }}:{{ .Version }}-arm64v8
# nfpms:
# - id: packages
# maintainer:
# # Formats to be generated.
# formats:
# - deb
# - rpm
# # contents:
# # # for updstart
# # - src: path/to/local/bar.conf
# # dst: /etc/bar.conf
# # type: "config|noreplace"
# # # for logging
# # - dst: /some/dir
# # type: dir
# # file_info:
# # mode: 0700
- tzdata
4 changes: 0 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
- "LICENSE"
- "docs"
- "Makefile"
branches:
- "main"
tags:
- "v*"
workflow_dispatch:

permissions:
Expand Down

0 comments on commit dd3bbdd

Please sign in to comment.