This commit is contained in:
14
.drone.sh
Normal file
14
.drone.sh
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#set -e
|
||||||
|
#set -x
|
||||||
|
|
||||||
|
# disable CGO for cross-compiling
|
||||||
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
|
export now=$(TZ=Australia/Sydney date '+%Y%m%d-%H%M%S')
|
||||||
|
echo $now
|
||||||
|
echo "build commences"
|
||||||
|
go build -ldflags "-X main.sha1ver=`git rev-parse HEAD` -X main.buildTime=$now" -o api-tester .
|
||||||
|
echo "build complete"
|
||||||
|
sha256sum api-tester > api-tester_checksum.txt
|
||||||
|
ls -lah
|
27
.drone.yml
Normal file
27
.drone.yml
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
# Docs at https://docs.drone.io/pipeline/exec/overview/
|
||||||
|
# Also see https://github.com/harness/drone-cli/blob/master/.drone.yml
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- sh ./.drone.sh
|
||||||
|
|
||||||
|
- name: auto-release
|
||||||
|
image: xena/gitea-release:latest
|
||||||
|
pull: always
|
||||||
|
settings:
|
||||||
|
auth_username: nathan
|
||||||
|
default_branch: trunk
|
||||||
|
gitea_server: https://git.coadcorp.com
|
||||||
|
gitea_token:
|
||||||
|
from_secret: GITEA_TOKEN
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
0
.gitignore
vendored
Normal file
0
.gitignore
vendored
Normal file
9
CHANGELOG.md
Normal file
9
CHANGELOG.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Changelog
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## 0.0.1
|
||||||
|
|
||||||
|
Initial development
|
Reference in New Issue
Block a user