Add Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2022-04-07 13:36:13 -07:00
parent fd64313276
commit 610530cc54
2 changed files with 31 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM scratch
ARG BIN=./dist/resticscheduler-linux-amd64
COPY ${BIN} /bin/resticscheduler
ENTRYPOINT [ "/resticscheduler" ]

25
docker-manifest.tmpl Normal file
View File

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