ci/cd-2
This commit is contained in:
parent
ed6b634bd6
commit
47ab2d0910
1 changed files with 8 additions and 11 deletions
|
|
@ -1,10 +1,6 @@
|
|||
environment:
|
||||
GIT_AUTHOR_NAME: s.galanskiy
|
||||
GIT_AUTHOR_EMAIL: s.galanskiy@gossys.dev
|
||||
GIT_COMMITTER_NAME: s.galanskiy
|
||||
GIT_COMMITTER_EMAIL: s.galanskiy@gossys.dev
|
||||
name: release
|
||||
|
||||
pipeline:
|
||||
steps:
|
||||
checkout:
|
||||
image: woodpeckerci/plugin-git-checkout:latest
|
||||
settings:
|
||||
|
|
@ -75,17 +71,18 @@ pipeline:
|
|||
get_version:
|
||||
image: debian:latest
|
||||
commands:
|
||||
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field VERSION)
|
||||
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version)
|
||||
- echo "VERSION=$VERSION" > version.env
|
||||
|
||||
commit_changes:
|
||||
image: debian:latest
|
||||
secrets: [ GONETS ]
|
||||
commands:
|
||||
- source version.env
|
||||
- git config user.name "$GIT_AUTHOR_NAME"
|
||||
- git config user.email "$GIT_AUTHOR_EMAIL"
|
||||
- git config user.name "s.galanskiy"
|
||||
- git config user.email "s.galanskiy@gossys.dev"
|
||||
- git checkout develop
|
||||
- git commit -am "Релиз $VERSION"
|
||||
- git tag "v$VERSION"
|
||||
- git push origin develop
|
||||
- git push origin "v$VERSION"
|
||||
- git push https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git develop
|
||||
- git push https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git "v$VERSION"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue