Delete .github/workflows/docker-publish-worker.yml #4
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
name: push vote image to ECR | |
on: | |
push: | |
branches: | |
- main | |
env: | |
AWS_REGION: us-east-1 | |
ECR_REPOSITORY: result | |
EKS_CLUSTER: votingapp-eks | |
jobs: | |
BUILD_AND_PUBLISH_RESULT: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v4 | |
- name: Build & Upload image to ECR | |
uses: appleboy/docker-ecr-action@master | |
with: | |
access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
registry: ${{ secrets.REGISTRY }} | |
repo: ${{ env.ECR_REPOSITORY }} | |
region: ${{ env.AWS_REGION }} | |
tags: latest,${{ github.run_number }} | |
daemon_off: false | |
dockerfile: ./result/Dockerfile | |
context: ./result |