...
 
Commits (3)
......@@ -27,11 +27,11 @@ buildAndTest:
image: golang:latest
variables:
CGO_ENABLED: 0
GOPATH: "$PWD/.go"
script:
- test -f sass/main.css
- test -f sass/chart.css
- test -f sass/status.css
- export GOPATH="$PWD/.go"
- go generate --run "fileb0x"
- go build -ldflags "-X main.VERSION=$(git describe --tags) -X main.BUILD_DATE=$(date --iso-8601=seconds) -X main.GIN_MODE=release" -o bin/hashworksNET *.go
- go test --covermode=atomic --coverprofile=coverage.out ./server
......@@ -54,7 +54,7 @@ deploy:
name: mullnerz/ansible-playbook:latest
entrypoint: [""]
script:
- echo "${ANSIBLE_SSH_KEY}" | base64 --decode > ansible.key
- echo "${ANSIBLE_SSH_KEY}" | base64 -d > ansible.key
- ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/deploy.yml
only:
- master
......
# hashworks.net source
[![droneio](https://drone.github.hashworks.net/api/badges/hashworks/hashworksNET/status.svg?branch=master)](https://drone.github.hashworks.net/hashworks/hashworksNET) [![codecov](https://codecov.io/gh/hashworks/hashworksNET/branch/dev/graph/badge.svg)](https://codecov.io/gh/hashworks/hashworksNET)
[![coverage report](https://git.hashworks.net/hashworks/hashworksNET/badges/master/coverage.svg)](https://git.hashworks.net/hashworks/hashworksNET/commits/master) [![codecov](https://codecov.io/gh/hashworks/hashworksNET/branch/dev/graph/badge.svg)](https://codecov.io/gh/hashworks/hashworksNET)
Repository of [hashworks.net](https://hashworks.net).
......@@ -20,4 +20,4 @@ Additionally, acception tests are done by the CD system.
## Continuous Delivery
[Drone](https://drone.io/) in combination with [Ansible](https://www.ansible.com/) is used as the CD system. Any commit or pull request is built, tested and provided with a coverage report. Merges on the protected master branch will be deployed after successfull unit tests. Since the server is a single binary, including all static files thanks to [fileb0x](https://github.com/UnnoTed/fileb0x/) this process becomes trivial. Using systemd the service is sandboxed.
After a successfull deployment acception tests using [agouti](https://github.com/sclevine/agouti) are run. On failure a backup is restored.
\ No newline at end of file
After a successfull deployment acception tests using [agouti](https://github.com/sclevine/agouti) are run. On failure a backup is restored.