Skip to content

Commit

Permalink
Merge pull request #5 from l-bu/feature/3
Browse files Browse the repository at this point in the history
Fix goreleaser
  • Loading branch information
lukasbudisky authored Mar 9, 2022
2 parents 609ed3f + a60f560 commit d547d07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 39 deletions.
35 changes: 1 addition & 34 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -95,6 +62,6 @@ trigger:

---
kind: signature
hmac: 788240a36eb57d0dc27bbec122aa45c9b2eedf5a9639769134c546c4255f1489
hmac: a604c1918bf81e413e1c528bab1a3319bddbaad567f10775738ffc5b08d1bd9a

...
17 changes: 13 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -25,21 +30,25 @@ builds:
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
format: zip
- 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 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d547d07

Please sign in to comment.