condition etl image and push

This commit is contained in:
Daniel Roth 2026-02-05 09:55:52 +00:00
parent e0ae1be6b3
commit 0d1939f1c5
2 changed files with 30 additions and 1 deletions

View file

@ -61,7 +61,7 @@ jobs:
run: terraform plan -var-file=${STAGE}.tfvars -out=tfplan
- name: Terraform Apply
# if: env.STAGE == 'prod'
if: env.STAGE == 'prod'
working-directory: infrastructure/terraform/shared
run: terraform apply -auto-approve tfplan
@ -130,4 +130,18 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}
# ============================================================
# 3 Condition ETL image and Push
# ============================================================
condition_etl_image:
needs: [determine_stage, shared_terraform]
uses: ./.github/workflows/_build_image.yml
with:
ecr_repo: condition-etl-${{ needs.determine_stage.outputs.stage }}
dockerfile_path: backend/condition/Dockerfile
build_context: .
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.DEV_AWS_REGION }}

View file

@ -0,0 +1,15 @@
FROM public.ecr.aws/lambda/python:3.11
# Set working directory (Lambda task root)
WORKDIR /var/task
# -----------------------------
# Copy application code
# -----------------------------
# -----------------------------
# Lambda handler
# -----------------------------
CMD ["handler.handler"]