wip - refactoring main.py #86
Workflow file for this run
This file contains 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
# # ref: https://github.com/aws-actions/amazon-ecr-login | |
# name: Build Image and Push to ECR | |
# on: [push] | |
# jobs: | |
# build-linux: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout repo | |
# uses: actions/checkout@v3 | |
# - name: Configure AWS credentials | |
# uses: aws-actions/configure-aws-credentials@v1 | |
# with: | |
# role-to-assume: arn:aws:iam::123456789012:role/my-github-actions-role | |
# aws-region: us-east-2 | |
# - name: Login to Amazon ECR | |
# id: login-ecr | |
# uses: aws-actions/amazon-ecr-login@v1 | |
# - name: Build, tag, and push docker image to Amazon ECR | |
# env: | |
# REGISTRY: ${{ steps.login-ecr.outputs.registry }} | |
# REPOSITORY: my-ecr-repo | |
# IMAGE_TAG: ${{ github.sha }} | |
# run: | | |
# docker build -t $REGISTRY/$REPOSITORY:$IMAGE_TAG . | |
# docker push $REGISTRY/$REPOSITORY:$IMAGE_TAG |