Added CI and Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stefan Hoffmann 2021-01-01 15:14:03 +01:00
parent 68a8a2ff37
commit b8cfb9f535
3 changed files with 45 additions and 0 deletions

39
.drone.yml Normal file
View File

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

1
.gitignore vendored
View File

@ -12,3 +12,4 @@
# Output of the go coverage tool, specifically when used with LiteIDE # Output of the go coverage tool, specifically when used with LiteIDE
*.out *.out
ubnt-freifunk-map-api

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM Alpine:latest
COPY ubnt-freifunk-map-api /bin/ubnt-freifunk-map-api
CMD /bin/ubnt-freifunk-map-api