Skip to content

Commit

Permalink
Fix release process (#9)
Browse files Browse the repository at this point in the history
* Try push image

* Try fixing push with correct creds

* Publish on push to main to PRD
  • Loading branch information
smartfin authored Nov 19, 2024
1 parent 7d33fcb commit cceafd1
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ steps:
- name: build_publish_stable
image: plugins/ecr
environment:
AWS_SHARED_CREDENTIALS_FILE: /drone/src/.shared_creds_development
AWS_SHARED_CREDENTIALS_FILE: /drone/src/.shared_creds_prd
settings:
context: .
dockerfile: ./docker/Dockerfile
Expand All @@ -192,5 +192,42 @@ steps:
- ${DRONE_TAG}
build_args_from_env:
- DRONE_TAG
depends_on:
- decode-creds
---
kind: pipeline
type: docker
name: publish-to-ecr-prd-unstable

trigger:
event:
- push
branch:
- main

depends_on:
- check-code

steps:
- image: us.gcr.io/nyt-registry-prd/drone-awsma-decode-creds
name: decode-creds
settings:
encoded_creds:
from_secret: ecr-creds
export_creds_location: .export_creds_prd
shared_creds_location: .shared_creds_prd

- name: build_publish_stable
image: plugins/ecr
environment:
AWS_SHARED_CREDENTIALS_FILE: /drone/src/.shared_creds_prd
settings:
context: .
dockerfile: ./docker/Dockerfile
registry: 375574098923.dkr.ecr.us-east-1.amazonaws.com
repo: drone-convert-pathschanged
tags:
- stable
- ${DRONE_COMMIT:0:7}
depends_on:
- decode-creds

0 comments on commit cceafd1

Please sign in to comment.