added files
This commit is contained in:
parent
a0e20f8330
commit
207f01d839
|
@ -0,0 +1,49 @@
|
||||||
|
version: '1'
|
||||||
|
image: alpine
|
||||||
|
docker:
|
||||||
|
auth: '{{DOCKER_AUTH_JSON}}'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
image: docker.leffler.media/leffler.media/go-docker
|
||||||
|
script:
|
||||||
|
- export CGO_ENABLED=0
|
||||||
|
- mkdir -p bin
|
||||||
|
- env GOOS=windows GOARCH=amd64 go build -o bin/hello-amd64.exe hello.go
|
||||||
|
- env GOOS=windows GOARCH=386 go build -o bin/hello-i386.exe hello.go
|
||||||
|
#### - env GOOS=darwin GOARCH=amd64 go build -o bin/hello-amd64-darwin hello.go
|
||||||
|
# - env GOOS=darwin GOARCH=386 go build -o bin/hello-i386-darwin hello.go# 64-bit
|
||||||
|
#### - env GOOS=linux GOARCH=amd64 go build -o bin/hello-amd64-linux hello.go
|
||||||
|
#### - env GOOS=linux GOARCH=386 go build -o bin/hello-i386-linux hello.go
|
||||||
|
#### - env GOOS=linux GOARCH=arm64 go build -o bin/hello-arm64-linux hello.go
|
||||||
|
#### - env GOOS=linux GOARCH=arm go build -o bin/hello-arm32-linux hello.go
|
||||||
|
# - env GOOS=windows GOARCH=arm64 go build -o bin/hello-i386-linux hello.go
|
||||||
|
gitea_release:
|
||||||
|
image: docker.leffler.media/leffler.media/gitea-release
|
||||||
|
env:
|
||||||
|
GITEA_URL: git.leffler.media
|
||||||
|
REPO_FULL: Leffler.Media-LLC/go-hello-world
|
||||||
|
GITEA_TOKEN: '{{AUTORELEASE_BOT_API}}'
|
||||||
|
RELEASE_DIR: bin
|
||||||
|
TAGBOT_USERNAME: autorelease.bot
|
||||||
|
TAGBOT_EMAIL: autoreleasebot@leffler.media
|
||||||
|
script:
|
||||||
|
- bash -x /bin/run.sh
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
# email-zipper:
|
||||||
|
# image: docker.leffler.media/leffler.media/email-zipper
|
||||||
|
# env:
|
||||||
|
# EMAIL_ZIPPER_SUBJECT: Copy of Go Hello-world project
|
||||||
|
# EMAIL_ZIPPER_ADDRESS_FROM: '{{ZIPPER_SMTP_USER}}'
|
||||||
|
# EMAIL_ZIPPER_SMTP_PASSWD: '{{ZIPPER_SMTP_PASS}}'
|
||||||
|
# EMAIL_ZIPPER_ADDRESS_TO: nick@leffler.me
|
||||||
|
# EMAIL_ZIPPER_ADDRESS_CC: nick@leffler.media
|
||||||
|
# EMAIL_ZIPPER_SMTP_SERVER: mx.leffler.media:587
|
||||||
|
# EMAIL_ZIPPER_FRIENDLY_NAME: Leffler.Media Zipper
|
||||||
|
# EMAIL_ZIPPER_UPLOAD_URL: https://files.leffler.support/upload/
|
||||||
|
# EMAIL_ZIPPER_EXPIRE_SECONDS: "604800"
|
||||||
|
# EMAIL_ZIPPER_FOLDER: bin
|
||||||
|
# script:
|
||||||
|
# - /bin/run.sh
|
||||||
|
# dependencies:
|
||||||
|
# - build
|
2
DOCS.md
2
DOCS.md
|
@ -7,3 +7,5 @@
|
||||||
[Gotify Go Client](https://github.com/gotify/go-api-client)
|
[Gotify Go Client](https://github.com/gotify/go-api-client)
|
||||||
|
|
||||||
[AutoRun on Logon](https://github.com/emersion/go-autostart)
|
[AutoRun on Logon](https://github.com/emersion/go-autostart)
|
||||||
|
|
||||||
|
[Yaml parse](https://github.com/go-yaml/yaml)
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import ( "fmt"
|
||||||
|
"time"
|
||||||
|
"runtime"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main(){
|
||||||
|
duration := time.Second
|
||||||
|
durMin := time.Minute
|
||||||
|
fmt.Println("Hello World! 0")
|
||||||
|
time.Sleep(duration)
|
||||||
|
fmt.Println("Hello World! 1")
|
||||||
|
time.Sleep(duration)
|
||||||
|
fmt.Println("Hello World! 2")
|
||||||
|
time.Sleep(duration)
|
||||||
|
fmt.Printf("Hello from: %s %s\n",runtime.GOOS,runtime.GOARCH)
|
||||||
|
time.Sleep(durMin)
|
||||||
|
}
|
||||||
|
|
||||||
|
// testing
|
Loading…
Reference in New Issue