Skip to content

ingestion: skip empty IDs #8

ingestion: skip empty IDs

ingestion: skip empty IDs #8

name: GSheets to S3/DB script deploy
on:
push:
branches: [main]
paths:
- '.github/workflows/ingestion_deploy.yml'
- 'scripts/ingestion/*.py'
- 'scripts/ingestion/pyproject.toml'
- 'scripts/ingestion/poetry.lock'
- 'scripts/Dockerfile'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
- name: Build, tag, and push image to Amazon ECR (latest)
working-directory: scripts/ingestion
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPO: marburg
IMAGE_TAG: ${{ github.sha }}
run: |
docker build -f ./../Dockerfile -t $REGISTRY/$REPO:latest .
docker push $REGISTRY/$REPO:latest