Skip to content

Commit 3de8239

Browse files
authored
Fix goreleaser dev container installation, change archive and binary names (#313)
* Fix go releaser install * Change binary and archive names
1 parent 1ccc7ce commit 3de8239

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,5 @@ RUN echo "alias tf=terraform" >> "/root/.bashrc"
6161
# Switch back to dialog for any ad-hoc use of apt-get
6262
ENV DEBIAN_FRONTEND=dialog
6363

64-
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- "v0.132.1"
64+
# Install goreleaser
65+
RUN (cd /usr/local && curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh -s -- "v0.132.1")

.goreleaser.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
builds:
3-
- env:
3+
- binary: "{{ .ProjectName }}_{{ .Tag }}"
4+
env:
45
- CGO_ENABLED=0
56
goos:
67
- linux
78
- windows
89
- darwin
910
archives:
10-
- format_overrides:
11+
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
12+
format_overrides:
1113
- goos: windows
1214
format: zip
1315
checksum:
@@ -23,4 +25,4 @@ changelog:
2325
release:
2426
github:
2527
owner: microsoft
26-
name: terraform-provider-azuredevops
28+
name: terraform-provider-azuredevops

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Making the release:
473473
```
474474
1. Create
475475
```bash
476-
git tag $RELEASE_VERSION && ./bin/goreleaser release --rm-dist
476+
git tag $RELEASE_VERSION && goreleaser release --rm-dist
477477
478478
```
479479

0 commit comments

Comments
 (0)