Обновить .woodpecker/.woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
c65eb18a29
commit
05650ee576
1 changed files with 4 additions and 8 deletions
|
|
@ -99,25 +99,21 @@ steps:
|
||||||
- git config user.email "s.galanskiy@gossys.dev"
|
- git config user.email "s.galanskiy@gossys.dev"
|
||||||
- git fetch --all --prune
|
- git fetch --all --prune
|
||||||
- git branch -r
|
- git branch -r
|
||||||
- git checkout develop
|
- git checkout -b "release/$VERSION"
|
||||||
- git pull origin develop
|
|
||||||
- git commit -am "Релиз $VERSION"
|
- git commit -am "Релиз $VERSION"
|
||||||
- git tag -f "v$VERSION"
|
- git tag -f "v$VERSION"
|
||||||
- git push "https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git" develop
|
- git push "https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git" "release/$VERSION"
|
||||||
- git push -f https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git "v$VERSION"
|
- git push -f https://s.galanskiy:b4785198d18200dfed812dc4299575f736255bd7@dev.gossys.dev/s.galanskiy/gonets.git "v$VERSION"
|
||||||
|
|
||||||
release-upload:
|
release-upload:
|
||||||
image: curlimages/curl:latest
|
image: curlimages/curl:latest
|
||||||
environment:
|
|
||||||
GONETS:
|
|
||||||
from_secret: GONETS
|
|
||||||
commands:
|
commands:
|
||||||
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version)
|
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version)
|
||||||
- TAG="v$VERSION"
|
- TAG="v$VERSION"
|
||||||
- DEB_PATH="../gonets_${VERSION}_amd64.deb"
|
- DEB_PATH="../gonets_${VERSION}_amd64.deb"
|
||||||
- |
|
- |
|
||||||
curl -s -X POST "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases" \
|
curl -s -X POST "https://dev.gossys.dev/api/v1/repos/s.galanskiy/gonets/releases" \
|
||||||
-H "Authorization: token ${FORGEJO_TOKEN}" \
|
-H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"tag_name": "'$TAG'",
|
"tag_name": "'$TAG'",
|
||||||
|
|
@ -128,6 +124,6 @@ steps:
|
||||||
}' || true
|
}' || true
|
||||||
- |
|
- |
|
||||||
curl -s -X POST \
|
curl -s -X POST \
|
||||||
-H "Authorization: token ${GONETS}" \
|
-H "Authorization: token b4785198d18200dfed812dc4299575f736255bd7" \
|
||||||
-F "attachment=@$DEB_PATH" \
|
-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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue