From bae966b706398b6748631ea1d2221c7ec8499a94 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 2 May 2022 22:45:43 +0200 Subject: [PATCH] add missing files --- CONTRIBUTING.md | 31 +++++++++++++++++++++++++++++++ docker/Dockerfile.amd64 | 12 ++++++++++++ docker/Dockerfile.arm | 12 ++++++++++++ docker/Dockerfile.arm64 | 12 ++++++++++++ docker/manifest-quay.tmpl | 24 ++++++++++++++++++++++++ docker/manifest.tmpl | 24 ++++++++++++++++++++++++ renovate.json | 4 ++++ 7 files changed, 119 insertions(+) create mode 100644 CONTRIBUTING.md create mode 100644 docker/Dockerfile.amd64 create mode 100644 docker/Dockerfile.arm create mode 100644 docker/Dockerfile.arm64 create mode 100644 docker/manifest-quay.tmpl create mode 100644 docker/manifest.tmpl create mode 100644 renovate.json diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..c471f59 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,31 @@ +# Contributing + +## Security + +If you think you have found a **security issue**, please do not mention it in this repository. +Instead, send an email to security@thegeeklab.de with as many details as possible so it can be handled confidential. + +## Bug Reports and Feature Requests + +If you have found a **bug** or have a **feature request** please use the search first in case a similar issue already exists. +If not, please create an issue in this repository + +## Code + +If you would like to fix a bug or implement a feature, please fork the repository and create a Pull Request. + +Before you start any Pull Request, it is recommended that you create an issue to discuss first if you have any +doubts about requirement or implementation. That way you can be sure that the maintainer(s) agree on what to change and how, +and you can hopefully get a quick merge afterwards. + +Pull Requests can only be merged once all status checks are green. + +## Do not force push to your Pull Request branch + +Please do not force push to your Pull Requests branch after you have created your Pull Request, as doing so makes it harder for us to review your work. +Pull Requests will always be squashed by us when we merge your work. Commit as many times as you need in your Pull Request branch. + +## Re-requesting a review + +Please do not ping your reviewer(s) by mentioning them in a new comment. Instead, use the re-request review functionality. +Read more about this in the [GitHub docs, Re-requesting a review](https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/incorporating-feedback-in-your-pull-request#re-requesting-a-review). diff --git a/docker/Dockerfile.amd64 b/docker/Dockerfile.amd64 new file mode 100644 index 0000000..5f74d57 --- /dev/null +++ b/docker/Dockerfile.amd64 @@ -0,0 +1,12 @@ +FROM alpine:3.15@sha256:4edbd2beb5f78b1014028f4fbb99f3237d9561100b6881aabbf5acce2c4f9454 + +LABEL maintainer="Robert Kaussow " +LABEL org.opencontainers.image.authors="Robert Kaussow " +LABEL org.opencontainers.image.title="drone-s3-sync" +LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" + +ADD dist/drone-s3-sync /bin/ + +ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/docker/Dockerfile.arm b/docker/Dockerfile.arm new file mode 100644 index 0000000..5a8ea3d --- /dev/null +++ b/docker/Dockerfile.arm @@ -0,0 +1,12 @@ +FROM arm32v7/alpine:3.15@sha256:dc18010aabc13ce121123c7bb0f4dcb6879ce22b4f7c65669a2c634b5ceecafb + +LABEL maintainer="Robert Kaussow " +LABEL org.opencontainers.image.authors="Robert Kaussow " +LABEL org.opencontainers.image.title="drone-s3-sync" +LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" + +ADD dist/drone-s3-sync /bin/ + +ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/docker/Dockerfile.arm64 b/docker/Dockerfile.arm64 new file mode 100644 index 0000000..b366ed5 --- /dev/null +++ b/docker/Dockerfile.arm64 @@ -0,0 +1,12 @@ +FROM arm64v8/alpine:3.15@sha256:f3bec467166fd0e38f83ff32fb82447f5e89b5abd13264a04454c75e11f1cdc6 + +LABEL maintainer="Robert Kaussow " +LABEL org.opencontainers.image.authors="Robert Kaussow " +LABEL org.opencontainers.image.title="drone-s3-sync" +LABEL org.opencontainers.image.url="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.source="https://github.com/thegeeklab/drone-s3-sync" +LABEL org.opencontainers.image.documentation="https://github.com/thegeeklab/drone-s3-sync" + +ADD dist/drone-s3-sync /bin/ + +ENTRYPOINT ["/bin/drone-s3-sync"] diff --git a/docker/manifest-quay.tmpl b/docker/manifest-quay.tmpl new file mode 100644 index 0000000..e4868a0 --- /dev/null +++ b/docker/manifest-quay.tmpl @@ -0,0 +1,24 @@ +image: quay.io/thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: quay.io/thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64 + platform: + architecture: amd64 + os: linux + + - image: quay.io/thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + + - image: quay.io/thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/docker/manifest.tmpl b/docker/manifest.tmpl new file mode 100644 index 0000000..7926561 --- /dev/null +++ b/docker/manifest.tmpl @@ -0,0 +1,24 @@ +image: thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - image: thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64 + platform: + architecture: amd64 + os: linux + + - image: thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + + - image: thegeeklab/drone-s3-sync:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm + platform: + architecture: arm + os: linux + variant: v7 diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..45d1c03 --- /dev/null +++ b/renovate.json @@ -0,0 +1,4 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["github>thegeeklab/renovate-presets:golang"] +}