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 when:
AWS_ACCESS_KEY_SECRET: event:
from_secret: AWS_ACCESS_KEY_SECRET - push
ECR_URL: - name: build
from_secret: ECR_URL image: plugins/docker
- name: publish-tag settings:
image: plugins/ecr auto_tag: true
repo: registry.connermccall.me/personal_api
registry: registry.connermccall.me
tags:
- ${DRONE_TAG}
when: when:
event: event:
- tag - 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