Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 38 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ This repo contains the github actions for installing [AWS Copilot cli](https://g
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role-test
aws-region: us-east-1
- uses: ksivamuthu/[email protected].8
- uses: ksivamuthu/[email protected].9
with:
command: install
- run: |
Expand All @@ -29,13 +29,13 @@ This repo contains the github actions for installing [AWS Copilot cli](https://g
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::111111111111:role/my-github-actions-role-test
aws-region: us-east-1
- uses: ksivamuthu/[email protected].8
- uses: ksivamuthu/[email protected].9
with:
command: deploy
app: your-awesome-app
Expand All @@ -53,7 +53,7 @@ In the with attribute, the name value can be used to define the name of the job
```
deploy:
steps:
- uses: ksivamuthu/[email protected].8
- uses: ksivamuthu/[email protected].9
with:
command: deploy
app: your-awesome-app
Expand All @@ -68,10 +68,40 @@ In the with attribute, the tag value can be used to define the tag image name
```
deploy:
steps:
- uses: ksivamuthu/[email protected].8
- uses: ksivamuthu/[email protected].9
with:
command: deploy
app: your-awesome-app
env: prod
tag: image-name
```

### version

In the with attribute, the version value can be used to define the aws copilot release version

```
deploy:
steps:
- uses: ksivamuthu/[email protected]
with:
command: deploy
app: your-awesome-app
env: prod
version: v1.33.4
```

### deploy-env

In the with attribute, the deploy-env value can be used to enable deploy the target environment before deploying the workload.

```
deploy:
steps:
- uses: ksivamuthu/[email protected]
with:
command: deploy
app: your-awesome-app
env: prod
deploy-env: true
```
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ inputs:
path:
required: false
description: "path name"
version:
required: false
description: "Copilot version"
deploy-env:
required: false
description: "Deploy the target environment before deploying the workload."
default: "false"

runs:
using: "node20"
Expand Down
Loading