Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 506 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 506 Bytes

Docker image Action

Github Action to build and publish a Docker image to Amazon ECR.

Usage

- name: Checkout repo
  uses: actions/checkout@v4

- name: Build artifact
  run: |
    some build commands...

- name: Build image and push to Amazon ECR
  uses: easymountain-mhikes/action-docker-image@v1
  with:
      aws-access-key-id: ${{ secrets.aws-access-key-id }}
      aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
      repository: my-ecr-repo
      tag: ${{ github.sha }}