diff options
author | Cyborus <cyborus@cyborus.xyz> | 2023-12-17 21:21:46 +0100 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2023-12-17 21:21:46 +0100 |
commit | f326e93e840419cb9552700acb998a7ce15df456 (patch) | |
tree | 7d4d5d157c90fefb4fc21d20475f3fdb59cc4afe | |
parent | Merge pull request 'forgejo instance agnostic deployment' (#27) from agnostic... (diff) | |
download | forgejo-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.yml | 1 |
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 |