Обновить .woodpecker/.woodpecker.yml
This commit is contained in:
parent
f731d92fbe
commit
29ea5bf7d4
1 changed files with 12 additions and 8 deletions
|
|
@ -1,3 +1,9 @@
|
|||
clone:
|
||||
git:
|
||||
image: woodpeckerci/plugin-git
|
||||
settings:
|
||||
lfs: true
|
||||
|
||||
when:
|
||||
event: [push, tag]
|
||||
branch: main
|
||||
|
|
@ -9,17 +15,15 @@ steps:
|
|||
GONETS:
|
||||
from_secret: GONETS
|
||||
commands:
|
||||
# ПОДГОТОВКА ГИТА И КЛОНИРОВАНИЕ GONETS
|
||||
- echo $${GONETS}
|
||||
- apt update
|
||||
- apt install -y git git-lfs
|
||||
- git lfs install
|
||||
- echo "GONETS=${GONETS}"
|
||||
- echo "GONETS=${GONETS:0:4}"
|
||||
- test -n "${GONETS}" || (echo "Ошибка: GONETS пустая" && exit 1)
|
||||
- git config user.name "s.galanskiy"
|
||||
- git config user.email "s.galanskiy@gossys.dev"
|
||||
- git remote set-url origin https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git
|
||||
- git fetch --all
|
||||
- git branch -r
|
||||
- git reset --hard
|
||||
- git clean -fd
|
||||
- git checkout develop
|
||||
- git commit --allow-empty -m "Тестовый коммит"
|
||||
- git push -u origin develop
|
||||
Loading…
Add table
Add a link
Reference in a new issue