From b8e9e26e89100448240ea481097261704e2e8576 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Fri, 6 Aug 2021 21:20:06 +0100 Subject: [PATCH] Initial commit Signed-off-by: Olivier 'reivilibre --- .drone.yml | 24 ++++++++++++++++++++++++ build.sh | 9 +++++++++ 2 files changed, 33 insertions(+) create mode 100644 .drone.yml create mode 100644 build.sh diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9316c94 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,24 @@ +kind: pipeline +type: docker +name: default +platform: + os: linux + arch: arm64 +steps: + - name: build + image: golang:1.14.4-alpine3.12 + commands: + - sh build.sh + + - name: docker + image: plugins/docker + settings: + username: + from_secret: DOCKER_REGISTRY_USERNAME + password: + from_secret: DOCKER_REGISTRY_PASSWORD + repo: docker.bics.ga/reivilibre/drone-cache + registry: docker.bics.ga + tags: # TODO add more tags if we need them. + - latest + diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..4aaf4b4 --- /dev/null +++ b/build.sh @@ -0,0 +1,9 @@ +#!/bin/sh +set -eu + +rm -r drone-cache || : +git clone https://github.com/meltwater/drone-cache.git +cd drone-cache +git switch -c thisrelease v1.1.0 +go build +