Skip to content

Commit ac0ae18

Browse files
authored
Merge pull request #25 from LBGarber/circleci-actions
CircleCI -> GitHub Actions
2 parents 4cff0b0 + fbe3a33 commit ac0ae18

File tree

5 files changed

+70
-65
lines changed

5 files changed

+70
-65
lines changed

.circleci/config.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: build
2+
3+
on:
4+
workflow_dispatch: null
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # pin@v2
14+
15+
- uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # pin@v2
16+
with:
17+
go-version: '1.17'
18+
19+
- run: go version
20+
21+
- name: Build binary
22+
run: make

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.17
20+
21+
- name: Run GoReleaser
22+
uses: goreleaser/goreleaser-action@v2
23+
with:
24+
distribution: goreleaser
25+
version: latest
26+
args: release --rm-dist
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ vendor
2828
docker-machine-driver-linode
2929
dist
3030
out
31+
32+
dist/

.goreleaser.yml

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
33
before:
44
hooks:
5-
- go mod download
5+
# You may remove this if you don't use go modules.
6+
- go mod tidy
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
69
builds:
7-
-
8-
env:
10+
- env:
911
- CGO_ENABLED=0
10-
- GO111MODULE=on
11-
binary: docker-machine-driver-linode
1212
goos:
13-
# - windows
14-
- darwin
1513
- linux
16-
goarch:
17-
- amd64
18-
archive:
19-
name_template: "{{ .Binary }}_{{ .Os }}-{{ .Arch }}"
20-
format: zip
21-
# replacements:
22-
# darwin: Darwin
23-
# linux: Linux
24-
# windows: Windows
25-
# 386: i386
26-
# amd64: x86_64
14+
- darwin
15+
archives:
16+
- replacements:
17+
darwin: Darwin
18+
linux: Linux
19+
386: i386
20+
amd64: x86_64
2721
checksum:
28-
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
29-
release:
30-
name_template: "{{.ProjectName}}-v{{.Version}}"
22+
name_template: 'checksums.txt'
3123
snapshot:
32-
name_template: "{{ .Tag }}-next"
24+
name_template: "{{ incpatch .Version }}-next"
3325
changelog:
3426
sort: asc
3527
filters:
3628
exclude:
37-
- '^docs:'
38-
- '^test:'
29+
- '^docs:'
30+
- '^test:'

0 commit comments

Comments
 (0)