2024-05-13 14:56:32 +07:00
|
|
|
steps:
|
|
|
|
build:
|
|
|
|
when:
|
|
|
|
event: [push, pull_request]
|
2024-05-13 15:02:21 +07:00
|
|
|
image: docker.io/library/golang:latest
|
2024-05-13 14:56:32 +07:00
|
|
|
commands:
|
|
|
|
- go get
|
2024-05-13 15:30:39 +07:00
|
|
|
- go build
|
|
|
|
|
|
|
|
upload:
|
2024-05-13 15:31:44 +07:00
|
|
|
image: docker.io/ellpeck/woodpecker-nextcloud-upload
|
2024-05-13 15:30:39 +07:00
|
|
|
secrets: [ TTT_CI_TOKEN ]
|
|
|
|
settings:
|
|
|
|
# required settings
|
|
|
|
server: https://cloud.techtransthai.org # the server to use
|
|
|
|
user: ttt-ci # the user
|
|
|
|
token: $TTT_CI_TOKEN # the access token, or password if 2FA is disabled
|
|
|
|
files: # the file(s), uses glob patterns
|
|
|
|
- "server_setup"
|
2024-05-13 15:53:19 +07:00
|
|
|
dest: CI_Uploads/ # the destination directory
|