From b8cfb9f53566aacb95b7a5b1c12a330418c3cdd1 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Fri, 1 Jan 2021 15:14:03 +0100 Subject: [PATCH] Added CI and Dockerfile --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 5 +++++ 3 files changed, 45 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..016f08a --- /dev/null +++ b/.drone.yml @@ -0,0 +1,39 @@ +kind: pipeline +name: build-ffmap-ubnt-api + + +steps: + - name: build go + image: golang + commands: + - go build + + - name: docker + image: plugins/docker + settings: + repo: fftdf/ffmap-ubnt-api + username: + from_secret: docker_username + password: + from_secret: docker_password + when: + event: tag + + - name: gitea_release + image: plugins/gitea-release + settings: + api_key: + from_secret: gitea_api_key + base_url: https://git.freifunk-rhein-sieg.net + files: + - ubnt-freifunk-map-api + title: ${DRONE_TAG} + checksum: + - md5 + - sha1 + - sha256 + - sha512 + - adler32 + - crc32 + when: + event: tag \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9a3a8d8..6b7d635 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ # Output of the go coverage tool, specifically when used with LiteIDE *.out +ubnt-freifunk-map-api diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..460b83d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM Alpine:latest +COPY ubnt-freifunk-map-api /bin/ubnt-freifunk-map-api + + +CMD /bin/ubnt-freifunk-map-api \ No newline at end of file