Added CI integration & folder structure
This commit is contained in:
parent
31f77061fe
commit
17363bde52
4 changed files with 39 additions and 0 deletions
16
.woodpecker/1-check.yml
Normal file
16
.woodpecker/1-check.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
steps:
|
||||
- name: check-format
|
||||
image: golang
|
||||
environment:
|
||||
- CGO_ENABLED=1
|
||||
commands:
|
||||
- go fmt $(go list ./... | grep -v /vendor/)
|
||||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -race $(go list ./... | grep -v /vendor/)
|
||||
|
||||
- name: check-sec
|
||||
image: golang
|
||||
commands:
|
||||
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
- go get -v -d .
|
||||
- gosec ./...
|
15
README.md
15
README.md
|
@ -1,2 +1,17 @@
|
|||
# ots
|
||||
ots / one-time-secret is an simple website frontend + backend for sharing passwords or important text files in discord/text messanger.
|
||||
|
||||
## Status
|
||||
latest/main Branch <br>
|
||||
[![status-badge](https://ci.hackmi.ch/api/badges/8/status.svg)](https://ci.hackmi.ch/repos/8)
|
||||
|
||||
## Install guide
|
||||
- TODO
|
||||
|
||||
|
||||
## Advanced build
|
||||
### Building source
|
||||
- TODO
|
||||
|
||||
### Building Docker
|
||||
- TODO
|
3
go.mod
Normal file
3
go.mod
Normal file
|
@ -0,0 +1,3 @@
|
|||
module git.hackmi.ch/hackmi.ch/ots
|
||||
|
||||
go 1.22.2
|
5
main.go
Normal file
5
main.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package main
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
Reference in a new issue