Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 471e4dd

Browse files
committed
Use relay as extension
1 parent ecd20eb commit 471e4dd

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

action.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,27 @@ runs:
2222
with:
2323
path: ${{ inputs.build_cache_paths }}
2424
key: ${{ inputs.build_cache_key }}
25-
- name: Download and configure Sentry Lambda extension
25+
- name: Download latest relay
2626
shell: bash
2727
run: |
28-
echo "Downloading Sentry Lambda extension..."
28+
echo "Downloading relay..."
2929
mkdir -p dist-serverless/extensions
30-
curl -0 --silent --output dist-serverless/extensions/sentry-lambda-extension `curl -s https://release-registry.services.sentry.io/apps/sentry-lambda-extension/latest | jq -r .files.\"sentry-lambda-extension\".url`
30+
curl -0 --silent \
31+
--output dist-serverless/extensions/relay \
32+
`curl -s https://release-registry.services.sentry.io/apps/relay/latest | jq -r .files.\"relay-Linux-x86_64\".url`
33+
chmod +x dist-serverless/extensions/relay
34+
echo "Done downloading relay."
35+
- name: Configure Lambda extension to start relay
36+
shell: bash
37+
run: |
38+
echo "Creating start script..."
39+
cat > dist-serverless/extensions/sentry-lambda-extension << EOT
40+
#!/usr/bin/env bash
41+
set -euo pipefail
42+
./relay run
43+
EOT
3144
chmod +x dist-serverless/extensions/sentry-lambda-extension
32-
echo "Done downloading Sentry Lambda extension..."
45+
echo "Done creating start script."
3346
- name: Create Lambda Layer zip
3447
shell: bash
3548
run: |

0 commit comments

Comments
 (0)