Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .ci/publish-aws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ FULL_LAYER_NAME="${ELASTIC_LAYER_NAME}-${ARCHITECTURE}"

ALL_AWS_REGIONS=$(aws ec2 describe-regions --output json --no-cli-pager | jq -r '.Regions[].RegionName')

if [ "${GOARCH}" != "amd64" ]; then
echo "Skipping AWS publish for ${GOARCH} (only runs for amd64)"
exit 0
fi

Comment thread
dmathieu marked this conversation as resolved.
Outdated
rm -rf "${AWS_FOLDER}"

# Delete previous layers
Expand Down
2 changes: 2 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ dockers_v2:
publishers:
- name: publish-aws
cmd: ./.ci/publish-aws.sh
ids:
- zip
env:
- AWS_ACCESS_KEY_ID={{ .Env.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY={{ .Env.AWS_SECRET_ACCESS_KEY }}
Expand Down