Created
April 7, 2019 02:35
-
-
Save pvsune/c2d3a77362774742b956b645a009fb6a to your computer and use it in GitHub Desktop.
Drone CI sample caching config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: pipeline | |
name: default | |
steps: | |
- name: publish | |
image: plugins/ecr | |
environment: | |
PLUGIN_STORAGE_DRIVER: overlay2 | |
PLUGIN_CACHE_FROM: xxxxx.dkr.ecr.ap-southeast-1.amazonaws.com/pvsune/myapp:latest | |
settings: | |
access_key: | |
from_secret: aws_access_key_id | |
secret_key: | |
from_secret: aws_secret_access_key | |
repo: xxxxx.dkr.ecr.ap-southeast-1.amazonaws.com/pvsune/myapp | |
registry: xxxxx.dkr.ecr.ap-southeast-1.amazonaws.com | |
region: ap-southeast-1 | |
tags: | |
- latest | |
- ${DRONE_BRANCH/\//_} | |
when: | |
event: | |
- push | |
- tag | |
- name: notify post publish | |
image: plugins/slack | |
settings: | |
webhook: https://hooks.slack.com/services/XXXXX/XXXXX/XXXXX | |
channel: engineering-drone | |
when: | |
event: | |
- push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment