diff --git a/.drone.jsonnet b/.drone.jsonnet
index 440d5b9..43962fa 100644
--- a/.drone.jsonnet
+++ b/.drone.jsonnet
@@ -349,6 +349,9 @@ local PipelineNotifications = {
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},
+ when: {
+ status: ['success', 'failure'],
+ },
},
],
depends_on: [
diff --git a/.drone.yml b/.drone.yml
index b554822..83914f7 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -472,6 +472,10 @@ steps:
template: "Status: **{{ build.status }}**
Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}
Message: {{ build.message }}"
username:
from_secret: matrix_username
+ when:
+ status:
+ - success
+ - failure
trigger:
ref:
@@ -486,6 +490,6 @@ depends_on:
---
kind: signature
-hmac: 5501ddb0ffd0774614b7a435cecf5297e3000bb1f1dac8018b1af1cb8787281c
+hmac: 7560e4442691c78855f160abc22966652d7e84dc68136e1d8e1f5a402d38cab7
...
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..965823a
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,23 @@
+FROM python:3.8-alpine
+
+LABEL maintainer="Robert Kaussow " \
+ org.label-schema.name="docker-tidy" \
+ org.label-schema.vcs-url="https://github.com/xoxys/docker-tidy" \
+ org.label-schema.vendor="Robert Kaussow" \
+ org.label-schema.schema-version="1.0"
+
+ENV PY_COLORS=1
+
+ADD dist/docker_tidy-*.whl /
+
+RUN \
+ apk update --no-cache && \
+ rm -rf /var/cache/apk/* && \
+ pip install --upgrade --no-cache-dir pip && \
+ pip install --no-cache-dir --find-links=. docker-tidy && \
+ rm -f docker_tidy-*.whl && \
+ rm -rf /root/.cache/
+
+USER root
+CMD []
+ENTRYPOINT ["/usr/local/bin/docker-tidy"]
diff --git a/manifest.tmpl b/manifest.tmpl
new file mode 100644
index 0000000..d72572a
--- /dev/null
+++ b/manifest.tmpl
@@ -0,0 +1,24 @@
+image: xoxys/docker-tidy:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
+{{#if build.tags}}
+tags:
+{{#each build.tags}}
+ - {{this}}
+{{/each}}
+{{/if}}
+manifests:
+ - image: xoxys/docker-tidy:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64
+ platform:
+ architecture: amd64
+ os: linux
+
+ - image: xoxys/docker-tidy:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64
+ platform:
+ architecture: arm64
+ os: linux
+ variant: v8
+
+ - image: xoxys/docker-tidy:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm
+ platform:
+ architecture: arm
+ os: linux
+ variant: v7