Skip to content

Commit 43b4535

Browse files
authored
Fix release workflow (elastic#1845)
* Add AWS default region env * Fix docker build command
1 parent 78a9d26 commit 43b4535

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.ci/publish-aws.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ set -euo pipefail
88
# AWS_FOLDER is used for temporary output of publishing layers used to create the arn table. (Optional)
99
# ELASTIC_LAYER_NAME is the name of the lambda layer e.g. elastic-apm-python-ver-3-44-1 for the git tag v3.44.1 (Required)
1010

11+
12+
# This needs to be set in GH actions
13+
# https://dotjoeblog.wordpress.com/2021/03/14/github-actions-aws-error-exit-code-255/
14+
# eu-west-1 is just a random region
15+
export AWS_DEFAULT_REGION=${AWS_DEFAULT_REGION:-eu-west-1}
16+
1117
export AWS_FOLDER=${AWS_FOLDER:-.aws}
1218
FULL_LAYER_NAME=${ELASTIC_LAYER_NAME:?layer name not provided}
1319
ALL_AWS_REGIONS=$(aws ec2 describe-regions --output json --no-cli-pager | jq -r '.Regions[].RegionName')

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
docker build
105105
-t docker.elastic.co/observability/apm-agent-python:${GITHUB_REF_NAME/v/}
106106
--build-arg AGENT_DIR=./build/dist/package/python
107+
.
107108
- name: Docker push
108109
run: docker push docker.elastic.co/observability/apm-agent-python:${GITHUB_REF_NAME/v/}
109110

0 commit comments

Comments
 (0)