-
Notifications
You must be signed in to change notification settings - Fork 46
46 lines (43 loc) · 1.29 KB
/
Copy pathbuild-openapi-index-lambda.yml
File metadata and controls
46 lines (43 loc) · 1.29 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 builds the OpenAPI version-index Lambda bootstrap binary
# that can be deployed to AWS Lambda.
name: Build OpenAPI Index 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-openapi-index/release_linux-x64/bootstrap
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.ref }}
persist-credentials: false
- name: Amazon Linux 2023 build
run: |
docker build . -t openapi-index:latest -f src/infra/docs-lambda-openapi-index/lambda.DockerFile
- name: Get bootstrap binary
run: |
docker cp "$(docker create --name tc openapi-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: openapi-index-updater-lambda-binary
retention-days: 1
if-no-files-found: error
path: ${{ env.BINARY_PATH }}