Skip to content

fix: #1675 (b) Temporary fix FAM search IDIR user scenario by switchi… #1802

fix: #1675 (b) Temporary fix FAM search IDIR user scenario by switchi…

fix: #1675 (b) Temporary fix FAM search IDIR user scenario by switchi… #1802

name: Auth function artifact
on:
push:
branches:
- "main"
paths:
- "server/**"
pull_request:
branches:
- "main"
paths:
- "server/**"
jobs:
auth-function-ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Auth function zip
run: |
mkdir auth_function_packaging
rsync -r server/auth_function/* auth_function_packaging -F --exclude=requirements.txt --exclude=test --exclude=requirements-dev.txt
pip install -t auth_function_packaging -r server/auth_function/requirements.txt -r server/auth_function/requirements-dev.txt
cd auth_function_packaging
zip -r9 ../infrastructure/server/fam_auth_function.zip .
cd ..
rm -rf auth_function_packaging
- name: Auth function upload zip file artifact
uses: actions/upload-artifact@v4
with:
name: fam-auth-function-zip
path: ./infrastructure/server/fam_auth_function.zip
if-no-files-found: error