From 30ca5b7f8432c23e0ae603301c7bda9b456b241e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sun, 25 Sep 2022 13:15:48 +0200 Subject: [PATCH] add .drone.yml --- .drone.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- manifest.tmpl | 13 ++++++++++++ 3 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 100644 manifest.tmpl diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..64eb4fa --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +--- +kind: pipeline +type: docker +name: linux-amd64 + +platform: + os: linux + arch: amd64 + +steps: + - name: publish + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + registry: gitea.dwysokinski.me + repo: gitea.dwysokinski.me/zdam-egzamin-zawodowy-docker/website + auto_tag: true + auto_tag_suffix: linux-amd64 + dockerfile: Dockerfile + +trigger: + event: + - tag +--- +kind: pipeline +type: docker +name: manifest + +steps: + - name: manifest + image: plugins/manifest + settings: + auto_tag: "true" + ignore_missing: "true" + spec: manifest.tmpl + username: + from_secret: docker_username + password: + from_secret: docker_password + - name: manifest-latest + image: plugins/manifest + settings: + tags: latest + ignore_missing: "true" + spec: manifest.tmpl + username: + from_secret: docker_username + password: + from_secret: docker_password + +trigger: + event: + - tag + +depends_on: + - linux-amd64 diff --git a/README.md b/README.md index 4a705e1..18e62f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# zdamegzaminzawodowy.pl +# [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) ![Screenshot](/screenshots/indexpage.png?raw=true) diff --git a/manifest.tmpl b/manifest.tmpl new file mode 100644 index 0000000..8d04993 --- /dev/null +++ b/manifest.tmpl @@ -0,0 +1,13 @@ +image: gitea.dwysokinski.me/zdam-egzamin-zawodowy-docker/website:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}} +{{#if build.tags}} +tags: +{{#each build.tags}} + - {{this}} +{{/each}} +{{/if}} +manifests: + - + image: gitea.dwysokinski.me/zdam-egzamin-zawodowy-docker/website:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64 + platform: + architecture: amd64 + os: linux