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/bunnycdn-purge
|
|
build_docker:
|
|
script:
|
|
- docker build -t docker.leffler.media/leffler.media/bunnycdn-purge .
|
|
- echo '{{DOCKER_PASS}}' | docker login -u '{{DOCKER_USER}}' --password-stdin https://docker.leffler.media
|
|
- docker push "docker.leffler.media/leffler.media/bunnycdn-purge"
|
|
dependencies:
|
|
- remove_docker_before
|
|
remove_docker_after:
|
|
allowFailure: true
|
|
script:
|
|
- docker image rm docker.leffler.media/leffler.media/bunnycdn-purge
|
|
dependencies:
|
|
- build_docker
|