Update .woodpecker/default.yml
This commit is contained in:
parent
2177311d64
commit
c6286c7c3e
1 changed files with 17 additions and 9 deletions
|
@ -1,11 +1,19 @@
|
|||
steps:
|
||||
- name: test
|
||||
image: alpine
|
||||
# .woodpecker.yml
|
||||
pipeline:
|
||||
build:
|
||||
image: golang:1.18
|
||||
commands:
|
||||
- echo "Woodpecker is working!"
|
||||
- uname -a
|
||||
- echo "Building the project"
|
||||
- go build -o build/my-app .
|
||||
|
||||
release:
|
||||
image: woodpeckerci/plugin-gitea-release
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- tag
|
||||
environment:
|
||||
- GITEA_URL=https://git.xyro.win
|
||||
- GITEA_TOKEN=${GITEA_TOKEN} # Make sure to set this in the Woodpecker secrets
|
||||
- REPO_NAME=MarioDB
|
||||
- TAG_NAME=${CI_COMMIT_REF} # Use the tag name
|
||||
- ASSET_PATH=build/*
|
||||
|
|
Loading…
Add table
Reference in a new issue