summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2023-12-17 21:21:46 +0100
committerCyborus <cyborus@cyborus.xyz>2023-12-17 21:21:46 +0100
commitf326e93e840419cb9552700acb998a7ce15df456 (patch)
tree7d4d5d157c90fefb4fc21d20475f3fdb59cc4afe
parentMerge pull request 'forgejo instance agnostic deployment' (#27) from agnostic... (diff)
downloadforgejo-cli-f326e93e840419cb9552700acb998a7ce15df456.tar.xz
forgejo-cli-f326e93e840419cb9552700acb998a7ce15df456.zip
[ci] set `FORGE_HOST` env var in release step
apparently env vars do not carry over between steps
-rw-r--r--.woodpecker/deploy.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml
index becbfa6..87c75cf 100644
--- a/.woodpecker/deploy.yml
+++ b/.woodpecker/deploy.yml
@@ -35,6 +35,7 @@ steps:
image: codeberg.org/cyborus/forgejo-cli:latest
pull: true
commands:
+ - export FORGE_HOST=$(echo $CI_FORGE_URL | sed -E 's_^https?://__')
- fj auth add-key $FORGE_HOST $CI_REPO_OWNER $TOKEN
- fj --remote $CI_REPO_URL release create $VERSION --create-tag --branch $BRANCH --attach forgejo-cli-windows.zip --attach forgejo-cli-windows.gz
- fj auth logout $FORGE_HOST