Skip to content

Commit

Permalink
Fix goreleaser dev container installation, change archive and binary …
Browse files Browse the repository at this point in the history
…names (#313)

* Fix go releaser install

* Change binary and archive names
  • Loading branch information
EliiseS authored May 13, 2020
1 parent 1ccc7ce commit 3de8239
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -61,4 +61,5 @@ RUN echo "alias tf=terraform" >> "/root/.bashrc"
# Switch back to dialog for any ad-hoc use of apt-get
ENV DEBIAN_FRONTEND=dialog

RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- "v0.132.1"
# Install goreleaser
RUN (cd /usr/local && curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- "v0.132.1")
8 changes: 5 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# This is an example goreleaser.yaml file with some sane defaults.
builds:
- env:
- binary: "{{ .ProjectName }}_{{ .Tag }}"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- format_overrides:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
@@ -23,4 +25,4 @@ changelog:
release:
github:
owner: microsoft
name: terraform-provider-azuredevops
name: terraform-provider-azuredevops
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
@@ -473,7 +473,7 @@ Making the release:
```
1. Create
```bash
git tag $RELEASE_VERSION && ./bin/goreleaser release --rm-dist
git tag $RELEASE_VERSION && goreleaser release --rm-dist
```

0 comments on commit 3de8239

Please sign in to comment.