mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 02:11:01 +00:00
Fix indentation and identification (#3111)
This commit is contained in:
parent
7c4a61a17f
commit
1742fb2b97
1 changed files with 11 additions and 9 deletions
|
@ -101,15 +101,15 @@ steps:
|
||||||
path: *docker_path
|
path: *docker_path
|
||||||
branch: ${CI_REPO_DEFAULT_BRANCH}
|
branch: ${CI_REPO_DEFAULT_BRANCH}
|
||||||
|
|
||||||
version-release:
|
version-release:
|
||||||
image: *alpine_image
|
image: *alpine_image
|
||||||
commands:
|
commands:
|
||||||
- apk add jq
|
- apk add jq
|
||||||
- if [[ "${CI_COMMIT_TAG}" != *"rc"* ]] ; then jq '.latest = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp && mv ./docs_repo/version.json.tmp ./docs_repo/version.json ; fi
|
- if [[ "${CI_COMMIT_TAG}" != *"rc"* ]] ; then jq '.latest = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp && mv ./docs_repo/version.json.tmp ./docs_repo/version.json ; fi
|
||||||
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
- jq '.rc = "${CI_COMMIT_TAG}"' ./docs_repo/version.json > ./docs_repo/version.json.tmp
|
||||||
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
- mv ./docs_repo/version.json.tmp ./docs_repo/version.json
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
|
|
||||||
copy-files:
|
copy-files:
|
||||||
image: *alpine_image
|
image: *alpine_image
|
||||||
|
@ -133,6 +133,8 @@ steps:
|
||||||
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
|
- ssh-keyscan -t rsa github.com >> $HOME/.ssh/known_hosts
|
||||||
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
- echo "$BOT_PRIVATE_KEY" > $HOME/.ssh/id_rsa
|
||||||
- chmod 0600 $HOME/.ssh/id_rsa
|
- chmod 0600 $HOME/.ssh/id_rsa
|
||||||
|
- git config --global user.email "woodpecker-bot@obermui.de"
|
||||||
|
- git config --global user.name "woodpecker-bot"
|
||||||
- cd ./docs_repo
|
- cd ./docs_repo
|
||||||
- git add .
|
- git add .
|
||||||
# exit successfully if nothing changed
|
# exit successfully if nothing changed
|
||||||
|
|
Loading…
Reference in a new issue