Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goreleaser: Update latest tag on docker hub to actual latest #4307

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
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
22 changes: 22 additions & 0 deletions dist/.goreleaser-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,27 @@ docker_manifests:
- --insecure
skip_push: false

- id: scylla-manager-latest
name_template: "scylladb/scylla-manager:latest"
image_templates:
- "scylladb/scylla-manager:{{ .Version }}-x86_64"
- "scylladb/scylla-manager:{{ .Version }}-aarch64"
create_flags:
- --insecure
push_flags:
- --insecure
skip_push: "{{ no .Env.LATEST_RELEASE }}"

- id: scylla-manager-agent-latest
name_template: "scylladb/scylla-manager-agent:latest"
image_templates:
- "scylladb/scylla-manager-agent:{{ .Version }}-x86_64"
- "scylladb/scylla-manager-agent:{{ .Version }}-aarch64"
create_flags:
- --insecure
push_flags:
- --insecure
skip_push: "{{ no .Env.LATEST_RELEASE }}"

checksum:
name_template: 'checksums'
10 changes: 6 additions & 4 deletions dist/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
RELEASE := 0.$(shell date +%Y%m%d).$(shell git describe --always)
VERSION ?=3.5.0-dev
PUBLISH := 0
RELEASE := 0.$(shell date +%Y%m%d).$(shell git describe --always)
VERSION ?=3.5.0-dev
PUBLISH := 0
LATEST_RELEASE := false

ifdef $$VERSION
VERSION := $$VERSION
Expand All @@ -11,6 +12,7 @@ publish = --skip=publish
VERSION_NAME := $(VERSION)-$(RELEASE)
else
VERSION_NAME := v$(VERSION)
LATEST_RELEASE := true
endif

$(shell echo $(VERSION) > .version)
Expand All @@ -21,7 +23,7 @@ GORELEASER := goreleaser --clean
release:
git tag -f $(VERSION_NAME)
$(GORELEASER) $(publish) --skip=validate --config .goreleaser.yaml
$(GORELEASER) --skip=validate --config .goreleaser-docker.yaml
LATEST_RELEASE=$(LATEST_RELEASE) $(GORELEASER) --skip=validate --config .goreleaser-docker.yaml

.PHONY: snapshot
snapshot:
Expand Down