add docker related files

This commit is contained in:
Robert Kaussow 2020-03-07 15:52:02 +01:00
parent 9f05344c85
commit f2eeb3a11d
4 changed files with 55 additions and 1 deletions

View File

@ -349,6 +349,9 @@ local PipelineNotifications = {
username: { from_secret: 'matrix_username' },
password: { from_secret: 'matrix_password' },
},
when: {
status: ['success', 'failure'],
},
},
],
depends_on: [

View File

@ -472,6 +472,10 @@ steps:
template: "Status: **{{ build.status }}**<br/> Build: [{{ repo.Owner }}/{{ repo.Name }}]({{ build.link }}) ({{ build.branch }}) by {{ build.author }}<br/> 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
...

23
Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM python:3.8-alpine
LABEL maintainer="Robert Kaussow <mail@geeklabor.de>" \
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"]

24
manifest.tmpl Normal file
View File

@ -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