Skip to content

Instantly share code, notes, and snippets.

@andrewmclagan
Last active May 12, 2016 06:21
Show Gist options
  • Save andrewmclagan/1bbf1c7dcedf90c4f1814166a909cd71 to your computer and use it in GitHub Desktop.
Save andrewmclagan/1bbf1c7dcedf90c4f1814166a909cd71 to your computer and use it in GitHub Desktop.
drone yml cache problems
....
RUNNING
started 8 minutes ago
CANCEL
[info] Pulling image plugins/drone-cache:latest
Drone Cache Plugin built from 96d0472
Restoring cache docker/_____/cache-image.tar
Unable to restore docker/_____/cache-image.tar. Cache does not exist
Restoring cache from master branch
Unable to restore docker/_____/cache-image.tar from master branch.
Restoring cache node_modules
Unable to restore node_modules. Cache does not exist
Restoring cache from master branch
Unable to restore node_modules from master branch.
Restoring cache .git
Unable to restore .git. Cache does not exist
Restoring cache from master branch
Unable to restore .git from master branch.
[info] Pulling image plugins/drone-git:latest
Drone Git Plugin built from 8be7aa9
$ git init
....
build:
image: node:5
commands:
- npm install --loglevel=warn
- npm test
publish:
docker:
username: _____
password: _____
email: ____
repo: _____
tag: latest
load: docker/_____/cache-image.tar
save:
destination: docker/_____/cache-image.tar
tag: latest
notify:
slack:
webhook_url: _____
channel: developers
username: drone
template: >
*{{ build.status }}*: {{ repo.full_name }} finished build {{ build.number }} on branch {{ build.branch }} with a status of *{{ build.status }}* authored by {{ build.author }}
cache:
mount:
- docker/_____/cache-image.tar
- node_modules
- .git
branches:
- staging
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment