Skip to content

Commit

Permalink
Merge pull request #100 from FloRul/email-request-pre-processor-as-zip
Browse files Browse the repository at this point in the history
pipeline
  • Loading branch information
joelbalcaen authored Mar 27, 2024
2 parents 4bb38af + e089c15 commit 8d8334e
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ jobs:
docker build -t $ECR_REGISTRY/${{ vars.FORM_REQUEST_PREPROCESSOR_ECR_NAME }}:$IMAGE_TAG ./lambdas/FormProcessor/FormRequestPreProcessorFunction
docker push $ECR_REGISTRY/${{ vars.FORM_REQUEST_PREPROCESSOR_ECR_NAME }}:$IMAGE_TAG
package-lambdas:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'

- name: Package Java lambdas
run: |
mvn -f ./lambdas/EmailProcessor/EmailRequestPreProcessorFunction package
deploy-infra:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [deploy_lambda]
Expand All @@ -103,16 +119,6 @@ jobs:
with:
python-version: '3.11'

- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'corretto'
java-version: '17'

- name: Package Java lambdas
run: |
mvn -f ./lambdas/EmailProcessor/EmailRequestPreProcessorFunction package
- name: Terraform Init
id: init
run: terraform init -no-color -upgrade
Expand Down

0 comments on commit 8d8334e

Please sign in to comment.