Skip to content

Instantly share code, notes, and snippets.

@pvsune
Created April 7, 2019 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvsune/c2d3a77362774742b956b645a009fb6a to your computer and use it in GitHub Desktop.
Save pvsune/c2d3a77362774742b956b645a009fb6a to your computer and use it in GitHub Desktop.
Drone CI sample caching config
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