Skip to content

Commit

Permalink
avoid publishing other bits
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 22, 2024
1 parent 5833107 commit 673139c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions .ci/publish-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -euo pipefail
# Publishes the created artifacts from GoReleaser to AWS as AWS Lambda Layers in every region.
# Finalized by generating an ARN table which will be used in the release notes.
#
exit 0

export AWS_FOLDER=${AWS_FOLDER:-.aws}
export SUFFIX_ARN_FILE=${SUFFIX_ARN_FILE:-arn-file.md}
Expand Down
1 change: 1 addition & 0 deletions .ci/release-github.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -euo pipefail
# Collects all created ARN tables created by .ci/publish-aws.sh script
# and publishes a GitHub Release Note with the given information.
#
exit 0

export SUFFIX_ARN_FILE=${SUFFIX_ARN_FILE:-arn-file.md}
VERSION=${VERSION:?Please provide VERSION environment variable. e.g. current git tag}
Expand Down
12 changes: 0 additions & 12 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,6 @@ docker_manifests:
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-x86_64:latest"
- "{{ .Env.DOCKER_REGISTRY }}/{{ .Env.DOCKER_IMAGE_NAME }}-arm64:latest"

publishers:
- name: publish-aws
cmd: ./.ci/publish-aws.sh
env:
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}
- ELASTIC_LAYER_NAME=elastic-apm-extension-ver-{{ replace (trimprefix .Tag "v") "." "-" }}
- VERSION={{ .Tag }}
- ARCHITECTURE={{ if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}
- GOOS={{ .Os }}
- GOARCH={{ .Arch }}
- AWS_FOLDER=.aws-{{ .Os }}-{{ .Arch }}
release:
# Custom GitHub release
disable: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ build:

.PHONY: release
release:
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --clean --skip-publish --skip-validate --skip-before
go run github.com/goreleaser/goreleaser@$(GORELEASER_VERSION) release --clean --skip-validate --skip-before

.PHONY: release-notes
release-notes:
Expand Down

0 comments on commit 673139c

Please sign in to comment.