From d69bda8ca8716c4f6a9ef7b9eef4b08591f3ec1c Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Fri, 11 Dec 2020 08:33:38 +0000 Subject: [PATCH] Add '.drone.yml' --- .drone.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..014fe24 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: kubernetes +name: Harbor + +clone: + disable: true + +steps: +- name: clone external repository + image: bv11-cr01.bessems.eu/proxy/alpine/git + commands: + - git clone https://github.com/ma1uta/ma1sd.git . + # Strip multi-arch support from Dockerfile + - sed -e 's|--platform=$BUILDPLATFORM ||' -i ./Dockerfile + # Inject 'apk upgrade' into Dockerfile + - sed -e 's|apk update|apk upgrade --update-cache --available|g' -i ./Dockerfile + +- name: build & publish + image: plugins/docker + context: . + settings: + repo: bv11-cr01.bessems.eu/library/matrix-identity + registry: bv11-cr01.bessems.eu + tags: latest + mtu: 1450 + username: + from_secret: harbor_username + password: + from_secret: harbor_password + # environment: + # DOCKER_CONTENT_TRUST: 1 + # DOCKER_CONTENT_TRUST_SERVER: https://notary.spamasaurus.com + # DOCKER_CONTENT_TRUST_REPOSITORY_PASSPHRASE: + # from_secret: harbor_repo_passphrase + # DOCKER_CONTENT_TRUST_ROOT_PASSPHRASE: + # from_secret: harbor_root_passphrase \ No newline at end of file