diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9570359..dfea148 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,8 +1,9 @@ +version: 2 + before: hooks: - go mod tidy - go test ./... - # - golangci-lint run builds: - env: @@ -13,11 +14,11 @@ builds: - darwin archives: - - format: tar.gz + - formats: [tar.gz] # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ - {{- .Os }}_ + {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} @@ -25,16 +26,28 @@ archives: # use zip for windows archives format_overrides: - goos: windows - format: zip + formats: [zip] changelog: - skip: true + disable: true dockers: - image_templates: - - "tardisx/gropple:{{ .Tag }}" - - "tardisx/gropple:v{{ .Major }}" - - "tardisx/gropple:v{{ .Major }}.{{ .Minor }}" - - "tardisx/gropple:latest" - + - "tardisx/gropple:{{ .Tag }}-amd64" + use: buildx + build_flag_templates: + - "--pull" + - "--platform=linux/amd64" + - image_templates: + - "tardisx/gropple:{{ .Tag }}-arm64" + use: buildx + build_flag_templates: + - "--pull" + - "--platform=linux/arm64" + goarch: arm64 +docker_manifests: + - name_template: "tardisx/gropple:{{ .Tag }}" + image_templates: + - "myorg/myuser:{{ .Tag }}-amd64" + - "myorg/myuser:{{ .Tag }}-arm64" diff --git a/CHANGELOG.md b/CHANGELOG.md index 06ff921..674c850 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [v1.1.4] - Unreleased + +- Minor refactorings, upgrade dependencies +- Migrate to goreleaser v2 configuration +- Generate arm64 docker builds + + ## [v1.1.3] - 2024-03-17 - Code cleanups, better error checking diff --git a/Dockerfile b/Dockerfile index a0b924b..7a70040 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:mantic +FROM ubuntu:noble COPY gropple / RUN apt update && apt install -y curl python3 ffmpeg