Update .woodpecker/default.yml
This commit is contained in:
parent
c6286c7c3e
commit
971bb0ebea
1 changed files with 8 additions and 8 deletions
|
@ -1,19 +1,19 @@
|
||||||
# .woodpecker.yml
|
# .woodpecker.yml
|
||||||
pipeline:
|
steps:
|
||||||
build:
|
- name: Build the project
|
||||||
image: golang:1.18
|
image: golang:1.18
|
||||||
commands:
|
commands:
|
||||||
- echo "Building the project"
|
- echo "Building the project"
|
||||||
- go build -o build/my-app .
|
- go build -o build/my-app .
|
||||||
|
|
||||||
release:
|
- name: Release to Gitea
|
||||||
image: woodpeckerci/plugin-gitea-release
|
image: woodpeckerci/plugin-gitea-release
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag # Trigger this step only on tags
|
||||||
environment:
|
environment:
|
||||||
- GITEA_URL=https://git.xyro.win
|
- GITEA_URL=https://git.xyro.win
|
||||||
- GITEA_TOKEN=${GITEA_TOKEN} # Make sure to set this in the Woodpecker secrets
|
- GITEA_TOKEN=${GITEA_TOKEN} # Ensure this is set in your Woodpecker secrets
|
||||||
- REPO_NAME=MarioDB
|
- REPO_NAME=MarioDB # Your repository name
|
||||||
- TAG_NAME=${CI_COMMIT_REF} # Use the tag name
|
- TAG_NAME=${CI_COMMIT_REF} # Use the current commit ref (which is the tag name in this case)
|
||||||
- ASSET_PATH=build/*
|
- ASSET_PATH=build/* # Path to your build artifacts
|
||||||
|
|
Loading…
Add table
Reference in a new issue