Compare commits
1 commit
63200760cd
...
892015e684
| Author | SHA1 | Date | |
|---|---|---|---|
| 892015e684 |
1 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ steps:
|
|||
branch:
|
||||
- main
|
||||
commands:
|
||||
- mkdir -p ~/.aws/
|
||||
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
||||
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
||||
- docker build . -t $ECR_URL/home_api:latest
|
||||
|
|
@ -19,12 +20,13 @@ steps:
|
|||
from_secret: AWS_CREDS
|
||||
ECR_URL:
|
||||
from_secret: ECR_URL
|
||||
- name: build
|
||||
- name: tag
|
||||
image: atlassian/default-image:2
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
commands:
|
||||
- mkdir -p ~/.aws/
|
||||
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
||||
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
||||
- docker build . -t $ECR_URL/home_api:$DRONE_TAG
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue