This commit is contained in:
parent
971bb0ebea
commit
fe5ed97114
1 changed files with 7 additions and 5 deletions
|
@ -2,6 +2,8 @@
|
|||
steps:
|
||||
- name: Build the project
|
||||
image: golang:1.18
|
||||
environment:
|
||||
CI: true
|
||||
commands:
|
||||
- echo "Building the project"
|
||||
- go build -o build/my-app .
|
||||
|
@ -12,8 +14,8 @@ steps:
|
|||
event:
|
||||
- tag # Trigger this step only on tags
|
||||
environment:
|
||||
- GITEA_URL=https://git.xyro.win
|
||||
- GITEA_TOKEN=${GITEA_TOKEN} # Ensure this is set in your Woodpecker secrets
|
||||
- REPO_NAME=MarioDB # Your repository name
|
||||
- TAG_NAME=${CI_COMMIT_REF} # Use the current commit ref (which is the tag name in this case)
|
||||
- ASSET_PATH=build/* # Path to your build artifacts
|
||||
GITEA_URL: "https://git.xyro.win" # Gitea URL
|
||||
GITEA_TOKEN: "${GITEA_TOKEN}" # Gitea API token stored as a secret
|
||||
REPO_NAME: "MarioDB" # Your repository name
|
||||
TAG_NAME: "${CI_COMMIT_REF}" # Tag name (commit reference)
|
||||
ASSET_PATH: "build/*" # Path to your build artifacts
|
||||
|
|
Loading…
Add table
Reference in a new issue