inital commit
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
commit
a2dee7c438
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: docker-publish
|
||||||
|
steps:
|
||||||
|
- name: publish image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
username: thecoopcloud
|
||||||
|
password:
|
||||||
|
from_secret: thecoopcloud_password
|
||||||
|
repo: thecoopcloud/traefik-cert-dumper
|
||||||
|
tags: latest
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM ldez/traefik-certs-dumper:2.7.4
|
||||||
|
COPY entrypoint.sh /opt/entrypoint.sh
|
||||||
|
COPY post-script.sh /opt/post-hook.sh
|
||||||
|
ENTRYPOINT /opt/entrypoint.sh
|
|
@ -0,0 +1,4 @@
|
||||||
|
while ! [ -e /traefik/production-acme.json ] || ! [ `jq ".production.Certificates | length" /traefik/production-acme.json` != 0 ]; do
|
||||||
|
sleep 1
|
||||||
|
; done
|
||||||
|
&& traefik-certs-dumper file --watch --source /traefik/production-acme.json --dest /output --domain-subdir=true --version v2 --post-hook "/opt/post-hook.sh"
|
|
@ -0,0 +1 @@
|
||||||
|
find /output/ -depth -type d ! -name "${DOMAIN}" ! -name "." -execdir rm -r "{}" +
|
Loading…
Reference in New Issue