feat: add handler for RF distribution updated (#116) #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push Docker Image to ECR | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
jobs: | |
push-to-ecr: | |
runs-on: ubuntu-latest | |
env: | |
ECR_REGISTRY: ${{ secrets.ECR_REGISTRY }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ vars.AWS_REGION }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Log in to Amazon ECR | |
uses: aws-actions/amazon-ecr-login@v2 | |
- name: Build Docker Image | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
target: processing | |
tags: ${{ secrets.ECR_REGISTRY }}:${{ github.sha }} | |
push: true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |