From a60f560406ad7377f152c36c44a9d6be2d1b3a7a Mon Sep 17 00:00:00 2001 From: l-bu <55512985+l-bu@users.noreply.github.com> Date: Wed, 9 Mar 2022 20:58:54 +0100 Subject: [PATCH] Fix goreleaser Fix goreleaser Update readme Remove slack alert from pipeline --- .drone.yml | 35 +---------------------------------- .goreleaser.yml | 17 +++++++++++++---- README.md | 2 +- 3 files changed, 15 insertions(+), 39 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4354e23..d6555aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,39 +32,6 @@ steps: CB_PASSWORD: 123456 CB_USERNAME: Administrator - - name: notify slack - image: golang - settings: - channel: - from_secret: slack_channel - link_names: true - username: - from_secret: slack_username - template: | - {{#success build.status}} - *✅ Succeeded - project {{repo.name}}:* - - build {{build.number}} - - commit {{build.commit}} - - branch {{build.branch}} - - event {{build.event}} - - PR {{build.pull}} - - link {{build.link}} - {{else}} - *❌ Failed - project {{repo.name}}:* - - build {{build.number}} - - commit {{build.commit}} - - branch {{build.branch}} - - event {{build.event}} - - PR {{build.pull}} - - link {{build.link}} - {{/success}} - webhook: - from_secret: slack_webhook - when: - status: - - success - - failure - - name: release image: goreleaser/goreleaser commands: @@ -95,6 +62,6 @@ trigger: --- kind: signature -hmac: 788240a36eb57d0dc27bbec122aa45c9b2eedf5a9639769134c546c4255f1489 +hmac: a604c1918bf81e413e1c528bab1a3319bddbaad567f10775738ffc5b08d1bd9a ... diff --git a/.goreleaser.yml b/.goreleaser.yml index 867d401..77d6355 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,9 +1,14 @@ ---- +# Visit https://goreleaser.com for documentation on how to customize this +# behavior. before: hooks: + # this is just an example and not a requirement for provider building/publishing - go mod tidy builds: - env: +- 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: @@ -25,7 +30,7 @@ builds: goarch: '386' binary: '{{ .ProjectName }}_v{{ .Version }}' archives: - format: zip +- format: zip name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' @@ -33,13 +38,17 @@ checksum: signs: - artifacts: checksum args: + # 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" - - "{{ .Env.GPG_FINGERPRINT }}" + - "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key - "--output" - "${signature}" - "--detach-sign" - "${artifact}" release: + # If you want to manually examine the release before its live, uncomment this line: + # draft: true changelog: skip: true diff --git a/README.md b/README.md index a597937..5d51fa7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Terraform provider for Couchbase allow manage resources in couchbase cluster ## Requirements - terraform 0.13.x -- go 1.17.2 (for plugin build) +- go 1.17.6 (for plugin build) - docker-compose v2.2.3 - docker 4.4.2