Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
nyakaz73 committed Dec 17, 2020
1 parent a86e67f commit 86047db
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,36 @@ jobs:
run: echo "${{ steps.deploy.outputs.status }}"

```
Since the repo_url contains aws_account id , region, and repo_name you can simply use it as below:
To use with repo_uri:
```yml
name: Deploy Container image to aws ECR
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
aws_ecr_dockerfile_deploy:
runs-on: ubuntu-latest
name: AWS ecr deploy- A job that deploys a image container using a aws_ecr_dockerfile_deploy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy container image to AWS ECR
uses: nyakaz73/[email protected]
id: deploy
with:
access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
image_name: myapp
repo_uri: 694554431194.dkr.ecr.eu-west-2.amazonaws.com/myapp

- name: Get the output status
run: echo "${{ steps.deploy.outputs.status }}"

```


## Options
The action has multiple options, here is a list of options you can use under the **with** flag in your workflow:
Expand Down

0 comments on commit 86047db

Please sign in to comment.