Skip to content

Commit a5ead1b

Browse files
committed
Add go mod support + automatic build
1 parent 07e4f77 commit a5ead1b

File tree

4 files changed

+650
-3
lines changed

4 files changed

+650
-3
lines changed

.github/workflows/release.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
release-darwin-arm64:
7+
name: release darwin/arm64
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: wangyoucao577/[email protected]
12+
with:
13+
github_token: ${{ secrets.GITHUB_TOKEN }}
14+
goos: darwin
15+
goarch: arm64
16+
md5sum: false
17+
project_path: .
18+
binary_name: terraform-provider-ecs
19+
20+
release-darwin-amd64:
21+
name: release darwin/amd64
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: wangyoucao577/[email protected]
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
goos: darwin
29+
goarch: amd64
30+
md5sum: false
31+
project_path: .
32+
binary_name: terraform-provider-ecs
33+
34+
release-linux-amd64:
35+
name: release linux/amd64
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v2
39+
- uses: wangyoucao577/[email protected]
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
goos: linux
43+
goarch: amd64
44+
md5sum: false
45+
project_path: .
46+
binary_name: terraform-provider-ecs

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ After installing golang on your system, run `go build -o terraform-provider-ecs`
1818

1919
## How to install it ?
2020

21-
Copy the binary `terraform-provider-ecs` in the `terraform.d/plugins/linux_amd64` directory of your terraform module.
21+
You can download latest release from this [page](https://github.com/livestorm/terraform-provider-ecs/releases).
2222

23-
NOTE1: On you local machine, the directory is `.terraform` instead of `terraform.d`.
23+
Copy the binary `terraform-provider-ecs` in the `~/terraform.d/plugins/$ARCH` directory.
2424

25-
NOTE2: If you are on macOS the architecture is `darwin_amd64` instead of `linux_amd64`.
25+
`$ARCH` can be one of the following:
26+
- darwin_amd64
27+
- darwin_arm64
28+
- linux_amd64
2629

2730
## Warning
2831

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/livestorm/terraform-provider-ecs
2+
3+
go 1.16
4+
5+
require (
6+
github.com/aws/aws-sdk-go v1.38.18
7+
github.com/hashicorp/terraform-plugin-sdk v1.16.1
8+
)

0 commit comments

Comments
 (0)