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:
|
branch:
|
||||||
- main
|
- main
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir -p ~/.aws/
|
||||||
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
||||||
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
||||||
- docker build . -t $ECR_URL/home_api:latest
|
- docker build . -t $ECR_URL/home_api:latest
|
||||||
|
|
@ -19,12 +20,13 @@ steps:
|
||||||
from_secret: AWS_CREDS
|
from_secret: AWS_CREDS
|
||||||
ECR_URL:
|
ECR_URL:
|
||||||
from_secret: ECR_URL
|
from_secret: ECR_URL
|
||||||
- name: build
|
- name: tag
|
||||||
image: atlassian/default-image:2
|
image: atlassian/default-image:2
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir -p ~/.aws/
|
||||||
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
- echo $AWS_CREDS | base64 -d > ~/.aws/credentials
|
||||||
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
- aws ecr get-login-password | docker login --username AWS --password-stdin $ECR_URL
|
||||||
- docker build . -t $ECR_URL/home_api:$DRONE_TAG
|
- docker build . -t $ECR_URL/home_api:$DRONE_TAG
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue