Skip to content

Commit

Permalink
build the layer when we promote
Browse files Browse the repository at this point in the history
  • Loading branch information
mojotalantikite committed Jan 25, 2024
1 parent 37be136 commit 7596173
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,29 @@ jobs:
name: lambda-layers-prisma-client-engine
path: ./services/app-api/lambda-layers-prisma-client-engine

build-clamav-layer:
name: build - clamav layer
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: yarn

- name: Prepare ClamAV layer
working-directory: services/uploads/src/avLayer
run: ./dockerbuild.sh

- uses: actions/upload-artifact@v3
with:
name: lambda-layers-clamav
path: ./services/uploads/src/avLayer/build/lambda_layer.zip

promote-infra-dev:
needs: [build-prisma-client-lambda-layer, unit-tests]
needs: [build-prisma-client-lambda-layer, build-clamav-layer, unit-tests]
uses: Enterprise-CMCS/managed-care-review/.github/workflows/deploy-infra-to-env.yml@main
with:
environment: dev
Expand Down

0 comments on commit 7596173

Please sign in to comment.