From 33a5e27b34d6a29edeb2be516256c0d187cc5b07 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Thu, 4 Nov 2021 14:58:22 -0400 Subject: [PATCH] Add instructions, reduce build targets --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 51 +++++++++++++++-------------------- README.md | 11 +++++++- 3 files changed, 33 insertions(+), 31 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9741fc6..79a3adb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v2 with: - go-version: 1.14 + go-version: 1.17 - name: Import GPG key id: import_gpg uses: hashicorp/ghaction-import-gpg@v2.1.0 diff --git a/.goreleaser.yml b/.goreleaser.yml index af2479f..c282bfb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -5,40 +5,33 @@ before: # this is just an example and not a requirement for provider building/publishing - go mod tidy 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 }}' + - 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: + - linux + - darwin + goarch: + - amd64 + - arm64 + binary: "{{ .ProjectName }}_v{{ .Version }}" archives: -- format: zip - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + - format: zip + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" checksum: - name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' + name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS" algorithm: sha256 signs: - artifacts: checksum args: - # if you are using this in a GitHub action or some other automated pipeline, you + # if you are using this in a GitHub action or some other automated pipeline, you # need to pass the batch flag to indicate its not interactive. - "--batch" - "--local-user" @@ -51,4 +44,4 @@ release: # If you want to manually examine the release before its live, uncomment this line: # draft: true changelog: - skip: true \ No newline at end of file + skip: true diff --git a/README.md b/README.md index e193833..d1a6daa 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,18 @@ [![All Contributors](https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square)](#contributors-) [![Build Status](https://github.com/louy/terraform-provider-uptimerobot/workflows/test/badge.svg)](https://github.com/louy/terraform-provider-uptimerobot/actions?query=branch%3Amaster+workflow%3Atest) +## Migrating from the old provider + +If you're using the provider this was forked from, you can run the following to use the +new provider: + +```bash +terraform state replace-provider louy/uptimerobot vexxhost/uptimerobot +``` + ## Getting started -To install this provider, check out the installation instructions on [Terraform's registry page](https://registry.terraform.io/providers/louy/uptimerobot/latest). +To install this provider, check out the installation instructions on [Terraform's registry page](https://registry.terraform.io/providers/vexxhost/uptimerobot/latest). ```tf terraform {