Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Maurizio Porrato | f92bf38c65 |
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
matrix:
|
||||
include:
|
||||
- GOOS: linux
|
||||
GOARCH: amd64
|
||||
pipeline:
|
||||
build:
|
||||
image: docker.io/library/golang:1.19
|
||||
commands:
|
||||
- go build -ldflags="-s -w" -trimpath -o bin/ubsserver-${GOOS}-${GOARCH} ./cmd/ubsserver
|
||||
- curl -s --user "$GITEA_ARTIFACT_USERNAME:$GITEA_ARTIFACT_PASSWORD" --upload-file bin/ubsserver-${GOOS}-${GOARCH} https://git.worn.eu/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/ubsserver-${GOOS}-${GOARCH}
|
||||
secrets:
|
||||
- gitea_artifact_username
|
||||
- gitea_artifact_password
|
||||
when:
|
||||
event: tag
|
||||
depends_on:
|
||||
- lint
|
||||
- test
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
pipeline:
|
||||
lint:
|
||||
image: docker.io/library/golang:1.19
|
||||
commands:
|
||||
- go vet $(go list ./... | grep -v /vendor/)
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
pipeline:
|
||||
test:
|
||||
image: docker.io/library/golang:1.19
|
||||
commands:
|
||||
- go test -race $(go list ./... | grep -v /vendor/)
|
||||
depends_on:
|
||||
- lint
|
Loading…
Reference in New Issue