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

Upgrade to standalone SDK #16

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1fb7ed6
get dynamically first free IP with phpipam_address resource if IP is …
pablo-ruth Aug 29, 2018
40c82b4
update doc
pablo-ruth Aug 29, 2018
c6c5f94
rewrite import path
pablo-ruth Aug 29, 2018
c0f84cc
build tags with travis
pablo-ruth Aug 29, 2018
e5c4254
add version to binary
pablo-ruth Aug 29, 2018
e0479c6
add glob to travis config
pablo-ruth Aug 29, 2018
306d2d9
update terraform to v0.12
pablo-ruth May 23, 2019
0a38700
Merge pull request #1 from Ouest-France/tf12
pablo-ruth May 23, 2019
8fc384e
Bump github.com/hashicorp/terraform from 0.12.0 to 0.12.10
dependabot-preview[bot] Oct 8, 2019
4e34ff7
Bump github.com/hashicorp/terraform from 0.12.0 to 0.12.10
pablo-ruth Oct 8, 2019
3eaab49
replace travis by github action
pablo-ruth Oct 8, 2019
38830b5
lint
pablo-ruth Oct 9, 2019
6cda83d
Merge pull request #4 from Ouest-France/ghaction
pablo-ruth Oct 9, 2019
35b7a2d
Bump github.com/hashicorp/terraform from 0.12.10 to 0.12.13
dependabot-preview[bot] Nov 1, 2019
1b834b1
Merge pull request #8 from Ouest-France/dependabot/go_modules/github.…
pablo-ruth Nov 6, 2019
a7fc131
Bump github.com/hashicorp/terraform from 0.12.13 to 0.12.16 (#12)
dependabot-preview[bot] Nov 19, 2019
e989007
Set empty ID on 404 for ip addr (#19)
pablo-ruth Jun 4, 2020
8817799
add Terraform registry formatted docs (#23)
pablo-ruth Aug 12, 2020
4c4fd6f
upgrade terraform dependency to 0.13.0 (#24)
pablo-ruth Aug 12, 2020
83f088f
Add goreleaser, upgrade go to 1.14 and golangci-lint to 1.30.0 (#25)
pablo-ruth Aug 12, 2020
5cbbd1e
Update README.md
pablo-ruth Aug 12, 2020
4e3ab50
Insecure ssl (#29)
rhysxevans Sep 8, 2020
b7c0b46
Update index.md
pablo-ruth Sep 8, 2020
db2070e
update go.sum
pablo-ruth Sep 8, 2020
b8b0aa8
Bump github.com/hashicorp/terraform from 0.13.0 to 0.14.2 (#33)
dependabot-preview[bot] Dec 9, 2020
e7ef07d
migrate to standalone sdk
pablo-ruth Mar 3, 2021
3829e73
upgrade to SDK v2
pablo-ruth Mar 3, 2021
bfac072
upgrade to last sdk and go 1.17
pablo-ruth Aug 27, 2021
70271be
rm tests helpers
pablo-ruth Aug 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: PR
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run Golang CI Lint
uses: golangci/golangci-lint-action@v2

- name: Build
run: go build
42 changes: 42 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tag
on:
push:
tags:
- "v*.*.*"

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Run Golang CI Lint
uses: golangci/golangci-lint-action@v2

- name: Clean Lint
run: rm -rf golangci-lint-*

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v2
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: v0.141.0
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
47 changes: 47 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
# usage by users in CI/CD systems like Terraform Cloud where
# they are unable to install libraries.
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}"
goos:
- freebsd
- windows
- linux
- darwin
goarch:
- amd64
- "386"
- arm
- arm64
ignore:
- goos: darwin
goarch: "386"
binary: "{{ .ProjectName }}_v{{ .Version }}"
archives:
- format: zip
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this is a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
changelog:
skip: true
10 changes: 3 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
build:
go build -o terraform-provider-phpipam_${TRAVIS_TAG}

test:
go test -v $(shell go list ./... | grep -v /vendor/)

testacc:
TF_ACC=1 go test -v ./plugin/providers/phpipam -run="TestAcc"

build: deps
gox -osarch="linux/amd64 windows/amd64 darwin/amd64" \
-output="pkg/{{.OS}}_{{.Arch}}/terraform-provider-phpipam" .

release: release_bump release_build

release_bump:
Expand All @@ -16,8 +15,5 @@ release_bump:
release_build:
scripts/release_build.sh

deps:
go get -u github.com/mitchellh/gox

clean:
rm -rf pkg/
Loading