personal_api/.drone.yml
Conner McCall e06386bb45
Some checks failed
continuous-integration/drone/push Build is failing
another test based on new docs
2020-08-06 09:19:42 -05:00

40 lines
770 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: publish-latest
image: plugins/ecr
when:
branch:
- main
settings:
secrets: [ AWS_ACCESS_KEY_ID, AWS_ACCESS_KEY_SECRET ]
repo: $ECR_URL/home_api
registry: $ECR_URL
environment:
AWS_ACCESS_KEY_ID:
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:
event:
- tag
settings:
access_key:
from_secret: AWS_ACCESS_KEY_ID
secret_key:
from_secret: AWS_ACCESS_KEY_SECRET
repo: home_api
registry: $ECR_URL
tags:
- latest
- $DRONE_TAG
environment:
ECR_URL:
from_secret: ECR_URL