Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
49 changes: 49 additions & 0 deletions .github/workflows/package-analyzer-lambda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Package CUR Analyzer Lambda

on:
push:
tags:
- 'analyzer-v*'

permissions:
contents: write

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up environment
id: setup_env
run: |
FUNC_DIR='lambdas/functions/iroco2-cur-analyzer'
OUT_DIR=${FUNC_DIR}/dist
echo "FUNC_DIR=${FUNC_DIR}" >> $GITHUB_ENV
echo "HANDLER_DIR=${FUNC_DIR}/src" >> $GITHUB_ENV
echo "OUT_DIR=${OUT_DIR}" >> $GITHUB_ENV
mkdir -p ${OUT_DIR}

- name: Build layer
run: |
cd ${{ env.FUNC_DIR }}
bash scripts/python-layers.sh "${{ github.workspace }}/${{ env.OUT_DIR }}/analyzer-layers.zip"
shell: bash

- name: Create handler.zip
run: |
cd "${{ env.HANDLER_DIR }}"
zip -r "../dist/analyzer-handler.zip" . -x "*/.*"
shell: bash

- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
This release refer only to the CUR analyzer lambda.
files: |
${{ env.OUT_DIR }}/analyzer-layers.zip
${{ env.OUT_DIR }}/analyzer-handler.zip

39 changes: 39 additions & 0 deletions .github/workflows/package-authorizer-lambda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Package Scanner Authorizer Lambda

on:
push:
tags:
- 'authorizer-v*'

permissions:
contents: write

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up environment
id: setup_env
run: |
FUNC_DIR='lambdas/functions/iroco2-authorizer'
echo "FUNC_DIR=${FUNC_DIR}" >> $GITHUB_ENV
echo "HANDLER_DIR=${FUNC_DIR}/src" >> $GITHUB_ENV

- name: Build layer
run: |
cd ${{ env.HANDLER_DIR }}
../scripts/build.sh

- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
This release refer only to the scanner authorizer lambda.
files: |
${{ env.HANDLER_DIR }}/bootstrap


53 changes: 53 additions & 0 deletions .github/workflows/package-scanner-lambda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Package Scanner Lambda

on:
push:
tags:
- 'scanner-v*'

permissions:
contents: write

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up environment
id: setup_env
run: |
FUNC_DIR='lambdas/functions/iroco2-client-side-scanner'
OUT_DIR=${FUNC_DIR}/dist
echo "FUNC_DIR=${FUNC_DIR}" >> $GITHUB_ENV
echo "LAYERS_DIR=${FUNC_DIR}/layers" >> $GITHUB_ENV
echo "HANDLER_DIR=${FUNC_DIR}/package" >> $GITHUB_ENV
echo "OUT_DIR=${OUT_DIR}" >> $GITHUB_ENV
mkdir -p ${OUT_DIR}

- name: Create layers.zip
run: |
cd "${{ env.LAYERS_DIR }}"
zip -r "../dist/scanner-layers.zip" . -x "*/.*"
shell: bash

- name: Create handler.zip
run: |
cd "${{ env.HANDLER_DIR }}"
zip -r "../dist/scanner-handler.zip" . -x "*/.*"
shell: bash

- name: Prepare config for release
run: cp "${{ env.FUNC_DIR }}/lambda.yaml" "${{ env.OUT_DIR }}/scanner-lambda.yaml"

- name: Create Release and Upload Assets
uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
This release refer only to the client side scanner lambda.
files: |
${{ env.OUT_DIR }}/scanner-layers.zip
${{ env.OUT_DIR }}/scanner-handler.zip
${{ env.OUT_DIR }}/scanner-lambda.yaml
20 changes: 0 additions & 20 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-backend.tf

This file was deleted.

18 changes: 0 additions & 18 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-datasources.tf

This file was deleted.

26 changes: 0 additions & 26 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-outputs.tf

This file was deleted.

25 changes: 0 additions & 25 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-providers.tf

This file was deleted.

37 changes: 0 additions & 37 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-variables.tf

This file was deleted.

29 changes: 0 additions & 29 deletions lambdas/functions/iroco2-client-side-scanner/tf/00-versions.tf

This file was deleted.

Loading