diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93b9382 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM scratch + +ARG BIN=./dist/resticscheduler-linux-amd64 +COPY ${BIN} /bin/resticscheduler + +ENTRYPOINT [ "/resticscheduler" ] diff --git a/docker-manifest.tmpl b/docker-manifest.tmpl new file mode 100644 index 0000000..4d28811 --- /dev/null +++ b/docker-manifest.tmpl @@ -0,0 +1,25 @@ +image: iamthefij/resticscheduler:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: iamthefij/resticscheduler:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux + - + image: iamthefij/resticscheduler:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64 + platform: + architecture: arm64 + os: linux + variant: v8 + - + image: iamthefij/resticscheduler:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm + platform: + architecture: arm + os: linux + variant: v7