Skip to content

updating template

updating template #2

name: GSheets to S3/DB script deploy
on:
push:
branches: [main]
paths:
- '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)
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPO: ebola
IMAGE_TAG: ${{ github.sha }}
run: |
cd scripts/gh_data_update && docker build -f ./../Dockerfile -t $REGISTRY/$REPO:latest .
docker push $REGISTRY/$REPO:latest