Обновить .woodpecker/.woodpecker.yml
This commit is contained in:
parent
59d4103dba
commit
f4bd09d735
1 changed files with 5 additions and 2 deletions
|
|
@ -106,9 +106,12 @@ steps:
|
|||
- git push -f https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git "v$VERSION"
|
||||
|
||||
# СОЗДАНИЕ И ЗАГРУЗКА РЕЛИЗА ЧЕРЕЗ API
|
||||
- VERSION=$(cat version.env | grep VERSION | cut -d'=' -f2)
|
||||
- . ./version.env
|
||||
- echo "Текущая версия: $VERSION"
|
||||
- TAG="v$VERSION"
|
||||
- DEB_PATH="../gonets_${VERSION}_amd64.deb"
|
||||
- echo "Путь к файлу: $DEB_PATH"
|
||||
- ls -l "$DEB_PATH" || echo "Файл не найден по пути: $DEB_PATH"
|
||||
- |
|
||||
curl -s -X POST "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases" \
|
||||
-H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \
|
||||
|
|
@ -124,4 +127,4 @@ steps:
|
|||
curl -s -X POST \
|
||||
-H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \
|
||||
-F "attachment=@$DEB_PATH" \
|
||||
"https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases/$TAG/assets"
|
||||
"https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases/$TAG/assets" || echo "Ошибка загрузки файла"
|
||||
Loading…
Add table
Add a link
Reference in a new issue