---
services:
  product-store-eligibility-check:
    platform: linux/amd64
    build:
      context: .
      target: deploy
    environment:
      - STORE_ID
      - DELIVERY_TYPE
      - UPC_FILE
      - UPC_LIST
      - LOG_LEVEL
      - BUILD_NUMBER
      - CONCURRENCY
      - TIMEOUT
      - AWS_ACCESS_KEY_ID
      - AWS_SECRET_ACCESS_KEY
      - AWS_SESSION_TOKEN
      - AWS_REGION
    volumes:
      - ./artifacts:/var/app/artifacts

  lint-and-test:
    platform: linux/amd64
    build:
      context: .
      target: lint-and-test
    environment:
      - SKIP_LINT=0
      - TEST_ARGS=-v
    volumes:
      - ./product_store_eligibility_check.py:/var/app/product_store_eligibility_check.py
      - ./config.py:/var/app/config.py
      - ./tests:/var/app/tests
