-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathbuild-link-index-updater-lambda.yml
More file actions
46 lines (43 loc) · 1.33 KB
/
build-link-index-updater-lambda.yml
File metadata and controls
46 lines (43 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# This workflow is used to build the link-index-updater
# lambda function bootstrap binary that can be deployed to AWS Lambda.
name: Build Link Index Updater Lambda
on:
workflow_dispatch:
workflow_call:
inputs:
ref:
required: false
type: string
default: ${{ github.ref }}
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
env:
BINARY_PATH: .artifacts/docs-lambda-index-publisher/release_linux-x64/bootstrap
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.ref }}
persist-credentials: false
- name: Amazon Linux 2023 build
run: |
docker build . -t publish-links-index:latest -f src/infra/docs-lambda-index-publisher/lambda.DockerFile
- name: Get bootstrap binary
run: |
docker cp $(docker create --name tc publish-links-index:latest):/app/.artifacts/publish ./.artifacts && docker rm tc
- name: Inspect bootstrap binary
run: |
tree .artifacts
stat "${BINARY_PATH}"
- name: Archive artifact
id: upload-artifact
uses: actions/upload-artifact@v7
with:
name: link-index-updater-lambda-binary
retention-days: 1
if-no-files-found: error
path: ${{ env.BINARY_PATH }}