Skip to content

Commit 7c302f2

Browse files
authored
Go back to using .Os and .Arch in publisher step (#748)
* go back to .Goos and .Goarch * print the environment before publish-aws
1 parent 284ce5c commit 7c302f2

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.ci/publish-aws.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export SUFFIX_ARN_FILE=${SUFFIX_ARN_FILE:-arn-file.md}
1414
# eu-west-1 is just a random region
1515
export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-eu-west-1}
1616

17+
printenv
1718
GOOS=${GOOS:?Please provide GOOS environment variable.}
1819
GOARCH=${GOARCH:?Please provide GOARCH environment variable.}
1920
ELASTIC_LAYER_NAME=${ELASTIC_LAYER_NAME:?Please provide ELASTIC_LAYER_NAME environment variable.}

.goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ publishers:
8888
- AWS_SESSION_TOKEN={{ .Env.AWS_SESSION_TOKEN }}
8989
- ELASTIC_LAYER_NAME=elastic-apm-extension-ver-{{ replace (trimprefix .Tag "v") "." "-" }}
9090
- VERSION={{ .Tag }}
91-
- ARCHITECTURE={{ if eq .Runtime.Goarch "amd64" }}x86_64{{ else }}{{ .Runtime.Goarch }}{{ end }}
92-
- GOOS={{ .Runtime.Goos }}
93-
- GOARCH={{ .Runtime.Goarch }}
94-
- AWS_FOLDER=.aws-{{ .Runtime.Goos }}-{{ .Runtime.Goarch }}
91+
- ARCHITECTURE={{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}
92+
- GOOS={{ .Os }}
93+
- GOARCH={{ .Arch }}
94+
- AWS_FOLDER=.aws-{{ .Os }}-{{ .Arch }}
9595
release:
9696
# Custom GitHub release
9797
disable: true

0 commit comments

Comments
 (0)