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

Fix CI #12

Merged
merged 5 commits into from
Feb 28, 2024
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
9 changes: 4 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
version: 2.1

orbs:
go: circleci/go@1.4.0
slack: circleci/slack@4.5.0
go: circleci/go@1.11.0
slack: circleci/slack@4.13.1

executors:
builder:
working_directory: /go/src/github.com/elastic-infra/go-remove-slowly
docker:
- image: circleci/golang:1.15
- image: cimg/go:1.22.0
environment:
GO111MODULE: 'on'

Expand All @@ -20,7 +19,7 @@ jobs:
- go/mod-download-cached
- run:
name: Build
command: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip-publish --rm-dist
command: curl -sL https://git.io/goreleaser | bash -s -- --snapshot --skip=publish --clean
- store_artifacts:
path: dist/
destination: dist
Expand Down
2 changes: 1 addition & 1 deletion .go-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.0
1.22.0
16 changes: 8 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ changelog:
- Merge pull request
- Merge branch
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
nfpms:
- vendor: Elastic Infra
homepage: https://elastic-infra.com/
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build: dist */*.go
env CGO_ENABLED=0 go build -o dist/remove-slowly ./cli

release-local-dryrun:
goreleaser --snapshot --skip-publish --rm-dist
goreleaser --snapshot --skip=publish --clean

dist: $@
mkdir $@
Expand Down