update drone.yml to send to personal registry
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Conner McCall 2024-01-26 10:37:10 -06:00
parent 67748b058b
commit 9bc4a73345

View file

@ -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