Skip to content

Commit

Permalink
[goreleaser] Support m1 mac (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Reed authored Sep 27, 2021
1 parent d9d5a36 commit 414051d
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 26 deletions.
29 changes: 22 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
test:
working_directory: /go/src/github.com/fairwindsops/nova
docker:
- image: circleci/golang:1.14
- image: circleci/golang:1.15
steps:
- checkout
- run:
Expand All @@ -22,16 +22,23 @@ jobs:
go test -v --bench --benchmem -coverprofile=coverage.txt -covermode=atomic ./pkg/...
go vet 2> govet-report.out
go tool cover -html=coverage.txt -o cover-report.html
snapshot:
working_directory: /go/src/github.com/fairwindsops/nova
docker:
- image: goreleaser/goreleaser:v0.174.2
steps:
- checkout
- run: goreleaser --snapshot
- store_artifacts:
path: dist
destination: snapshot
release-binary:
working_directory: /go/src/github.com/fairwindsops/nova
docker:
- image: circleci/golang:1.13
environment:
GO111MODULE: "on"
- image: goreleaser/goreleaser:v0.174.2
steps:
- checkout
- setup_remote_docker
- run: curl -sL http://git.io/goreleaser | bash
- run: goreleaser
publish_docs:
docker:
- image: cimg/node:15.5.1
Expand Down Expand Up @@ -62,6 +69,14 @@ workflows:
test_and_build:
jobs:
- test
- snapshot:
requires:
- test
filters:
branches:
only: /.*/
tags:
ignore: /.*/
- rok8s/docker_build_and_push:
name: build-container
docker-push: false
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ builds:
goarm:
- 6
- 7
goos:
- linux
- darwin
- windows
checksum:
name_template: 'checksums.txt'
changelog:
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
// required for dependency issue: https://github.com/kubernetes/client-go/issues/628
github.com/Azure/go-autorest v12.2.0+incompatible
github.com/DATA-DOG/go-sqlmock v1.4.1 // indirect
github.com/cavaliercoder/grab v2.0.0+incompatible
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/jmoiron/sqlx v1.2.0 // indirect
github.com/lib/pq v1.5.2 // indirect
Expand Down
Loading

0 comments on commit 414051d

Please sign in to comment.