diff options
author | 2022-02-26 10:45:23 +0100 | |
---|---|---|
committer | 2022-02-26 10:45:23 +0100 | |
commit | 69d70aa677b430c6e541892c0990891d7e48ccf6 (patch) | |
tree | 32e71189c332b012a8a6eb46180e9b1da0ff4d97 | |
parent | [feature] Add postDataCallbackFunc to allow cleanup (#408) (diff) | |
download | gotosocial-69d70aa677b430c6e541892c0990891d7e48ccf6.tar.xz |
[feature] Add Docker multi architecture Build and make goreleaser push the images and manifests (#410)
-rw-r--r-- | .goreleaser.yml | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/.goreleaser.yml b/.goreleaser.yml index 423103c10..6b24a2c75 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -54,15 +54,55 @@ dockers: goos: linux goarch: amd64 image_templates: - - "superseriousbusiness/gotosocial:latest" - - "superseriousbusiness/gotosocial:{{ .Version }}" + # - "superseriousbusiness/{{ .ProjectName }}:latest" + - "superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-amd64" build_flag_templates: + - --platform=linux/amd64 - "--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: - web + - + goos: linux + goarch: arm64 + image_templates: + # - "superseriousbusiness/{{ .ProjectName }}:latest" + - "superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-arm64v8" + build_flag_templates: + - --platform=linux/arm64/v8 + - "--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: + - web + - + goos: linux + goarch: arm + image_templates: + # - "superseriousbusiness/{{ .ProjectName }}:latest" + - "superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-armv7" + build_flag_templates: + - --platform=linux/arm/v7 + - "--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: + - web +docker_manifests: + - name_template: superseriousbusiness/{{ .ProjectName }}:{{ .Version }} + image_templates: + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-amd64 + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-arm64v8 + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-armv7 + - name_template: superseriousbusiness/{{ .ProjectName }}:latest + image_templates: + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-amd64 + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-arm64v8 + - superseriousbusiness/{{ .ProjectName }}:{{ .Version }}-armv7 archives: # https://goreleaser.com/customization/archive/ - |