Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,6 @@ jobs:
- name: publish the app on Heroku
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }}
run: |
curl https://cli-assets.heroku.com/install.sh | sh
/usr/local/bin/heroku container:release web --app ${{ secrets.HEROKU_APP_NAME }}
25 changes: 19 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- make docs
Expand Down Expand Up @@ -59,8 +60,8 @@ nfpms:
{{- else }}{{ .Os }}{{ end }}-
{{ .Arch }}

builds:
- pgconfigctl
# builds:
# - pgconfigctl

homepage: https://pgconfig.org/
maintainer: Sebastian Webber <sebastian@pgconfig.org>
Expand All @@ -74,8 +75,8 @@ nfpms:

archives:
- id: pgconfigctl
builds:
- pgconfigctl
# builds:
# - pgconfigctl
name_template: >-
{{ .Binary }}-
{{ .Version }}-
Expand All @@ -84,11 +85,19 @@ archives:
{{- else if eq .Os "windows" }}Windows
{{- else }}{{ .Os }}{{ end }}-
{{ .Arch }}
format: binary
# format: binary # deprecated
formats:
- tar.gz # standard default, user likely wants binary-only but v2 deprecates raw binary output in archives?
# If 'binary' format is desired, it's usually just copying the file.
# If I comment out format, it defaults to tar.gz.
# If I use formats: ["binary"] it might work if 'binary' is still a valid value inside the list.
# Let's try formats: ["binary"] first as the user had 'format: binary'.
- binary

checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"

changelog:
sort: asc
Expand All @@ -105,6 +114,7 @@ changelog:

dockers:
- dockerfile: cmd/pgconfigctl/Dockerfile
id: pgconfigctl-amd64
ids:
- pgconfigctl
goarch: amd64
Expand All @@ -120,6 +130,7 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
- dockerfile: cmd/pgconfigctl/Dockerfile
id: pgconfigctl-arm64
ids:
- pgconfigctl
goarch: arm64
Expand All @@ -137,6 +148,7 @@ dockers:

- dockerfile: cmd/api/Dockerfile
goarch: arm64
id: api-arm64
ids:
- api
image_templates:
Expand All @@ -156,6 +168,7 @@ dockers:
- pg-docs.yml
- dockerfile: cmd/api/Dockerfile
goarch: amd64
id: api-amd64
ids:
- api
image_templates:
Expand Down