I want to deploy a hugo page to codeberg.sites. my .woodpecker.yaml is like https://codeberg.org/Codeberg-CI/examples/src/branch/main/Hugo/.woodpecker.yaml with
woodpecker.yaml publish part
publish:image:bitnami/gitenvironment:HUGO_OUTPUT:public# secrets must be set in Woodpecker configurationMAIL:from_secret:mailCODEBERG_TOKEN:from_secret:codeberg_tokencommands:# Git configuration- git config --global user.email $MAIL- git config --global user.name "Woodpecker CI"- git clone -b master https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME# Copy build step output to repository folder- cp -ar $HUGO_OUTPUT/. $CI_REPO_NAME/# Needed for custom domains- cp .domains $CI_REPO_NAME || true# Ignore if it doesn't exist# Commit and push all static files with pipeline started timestamp- cd $CI_REPO_NAME- git add .- git commit -m "Woodpecker CI ${CI_COMMIT_SHA}"- git pushwhen:event:push
The only modification is that I clone the branch master instead of pages.
I fails with + git push fatal: could not read Password for 'https://********@codeberg.org': No such device or address.
What could be wrong?
### Comment
I want to deploy a hugo page to codeberg.sites. my .woodpecker.yaml is like https://codeberg.org/Codeberg-CI/examples/src/branch/main/Hugo/.woodpecker.yaml with
<details>
<summary> woodpecker.yaml publish part</summary>
```yaml
publish:
image: bitnami/git
environment:
HUGO_OUTPUT: public
# secrets must be set in Woodpecker configuration
MAIL:
from_secret: mail
CODEBERG_TOKEN:
from_secret: codeberg_token
commands:
# Git configuration
- git config --global user.email $MAIL
- git config --global user.name "Woodpecker CI"
- git clone -b master https://$CODEBERG_TOKEN@codeberg.org/$CI_REPO.git $CI_REPO_NAME
# Copy build step output to repository folder
- cp -ar $HUGO_OUTPUT/. $CI_REPO_NAME/
# Needed for custom domains
- cp .domains $CI_REPO_NAME || true # Ignore if it doesn't exist
# Commit and push all static files with pipeline started timestamp
- cd $CI_REPO_NAME
- git add .
- git commit -m "Woodpecker CI ${CI_COMMIT_SHA}"
- git push
when:
event: push
```
</details>
The only modification is that I clone the branch `master` instead of `pages`.
I fails with `+ git push
fatal: could not read Password for 'https://********@codeberg.org': No such device or address`.
What could be wrong?