From fe5ed97114c86d35a2a7cda6d51db3807be3bb01 Mon Sep 17 00:00:00 2001 From: nyosic Date: Fri, 4 Apr 2025 12:42:40 +0000 Subject: [PATCH] Update .woodpecker/default.yml --- .woodpecker/default.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.woodpecker/default.yml b/.woodpecker/default.yml index d30ef0e..b1cd5cb 100644 --- a/.woodpecker/default.yml +++ b/.woodpecker/default.yml @@ -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