Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Balcaen committed Mar 27, 2024
1 parent 493c357 commit e089c15
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 e089c15

Please sign in to comment.