Skip to content

Instantly share code, notes, and snippets.

@BlackHacked
Forked from fortis/.drone.yml
Created July 27, 2023 08:27
Show Gist options
  • Save BlackHacked/35ba10e231bd8c42efcfa710fa8438aa to your computer and use it in GitHub Desktop.
Save BlackHacked/35ba10e231bd8c42efcfa710fa8438aa to your computer and use it in GitHub Desktop.
drone docker plugins with layers cache
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
ttl: 7
mount:
- /drone/docker
# Mount the cache volume, needs "Trusted"
volumes:
- /tmp/cache:/cache
build-php:
image: plugins/docker
repo: 4real/skins-php
tags: [ 1, latest ]
storage_path: /drone/docker
dockerfile: docker/php/Dockerfile
secrets: [ docker_username, docker_password ]
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- /drone/docker
# Mount the cache volume, needs "Trusted"
volumes:
- /tmp/cache:/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment