23 lines
714 B
YAML
23 lines
714 B
YAML
version: '1'
|
|
image: docker
|
|
docker:
|
|
auth: '{{DOCKER_AUTH_JSON}}'
|
|
jobs:
|
|
remove_docker_before:
|
|
allowFailure: true
|
|
script:
|
|
- docker image rm docker.leffler.media/leffler.media/drone-cf-purge
|
|
build_docker:
|
|
script:
|
|
- docker build -t docker.leffler.media/leffler.media/drone-cf-purge .
|
|
- echo '{{DOCKER_PASS}}' | docker login -u '{{DOCKER_USER}}' --password-stdin https://docker.leffler.media
|
|
- docker push "docker.leffler.media/leffler.media/drone-cf-purge"
|
|
dependencies:
|
|
- remove_docker_before
|
|
remove_docker_after:
|
|
allowFailure: true
|
|
script:
|
|
- docker image rm docker.leffler.media/leffler.media/drone-cf-purge
|
|
dependencies:
|
|
- build_docker
|