update drone.yml to send to personal registry
This commit is contained in:
parent
67748b058b
commit
9bc4a73345
1 changed files with 17 additions and 30 deletions
47
.drone.yml
47
.drone.yml
|
|
@ -1,40 +1,27 @@
|
||||||
---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: publish-latest
|
- name: build-on-push
|
||||||
image: plugins/ecr
|
image: plugins/docker
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
settings:
|
settings:
|
||||||
secrets: [ AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_SECRET ]
|
repo: registry.connermccall.me/personal_api
|
||||||
repo: $ECR_URL/home_api
|
registry: registry.connermccall.me
|
||||||
registry: $ECR_URL
|
tags:
|
||||||
environment:
|
- ${DRONE_COMMIT_SHA:0:7}
|
||||||
AWS_ACCESS_KEY_ID:
|
- latest
|
||||||
from_secret: AWS_ACCESS_KEY_ID
|
|
||||||
AWS_ACCESS_KEY_SECRET:
|
|
||||||
from_secret: AWS_ACCESS_KEY_SECRET
|
|
||||||
ECR_URL:
|
|
||||||
from_secret: ECR_URL
|
|
||||||
- name: publish-tag
|
|
||||||
image: plugins/ecr
|
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- push
|
||||||
|
- name: build
|
||||||
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
access_key:
|
auto_tag: true
|
||||||
from_secret: AWS_ACCESS_KEY_ID
|
repo: registry.connermccall.me/personal_api
|
||||||
secret_key:
|
registry: registry.connermccall.me
|
||||||
from_secret: AWS_ACCESS_KEY_SECRET
|
|
||||||
repo: home_api
|
|
||||||
registry: $ECR_URL
|
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- ${DRONE_TAG}
|
||||||
- $DRONE_TAG
|
when:
|
||||||
environment:
|
event:
|
||||||
ECR_URL:
|
- tag
|
||||||
from_secret: ECR_URL
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue