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:
|
name: release
|
||||||
GIT_AUTHOR_NAME: s.galanskiy
|
|
||||||
GIT_AUTHOR_EMAIL: s.galanskiy@gossys.dev
|
|
||||||
GIT_COMMITTER_NAME: s.galanskiy
|
|
||||||
GIT_COMMITTER_EMAIL: s.galanskiy@gossys.dev
|
|
||||||
|
|
||||||
pipeline:
|
steps:
|
||||||
checkout:
|
checkout:
|
||||||
image: woodpeckerci/plugin-git-checkout:latest
|
image: woodpeckerci/plugin-git-checkout:latest
|
||||||
settings:
|
settings:
|
||||||
|
|
@ -75,17 +71,18 @@ pipeline:
|
||||||
get_version:
|
get_version:
|
||||||
image: debian:latest
|
image: debian:latest
|
||||||
commands:
|
commands:
|
||||||
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field VERSION)
|
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version)
|
||||||
- echo "VERSION=$VERSION" > version.env
|
- echo "VERSION=$VERSION" > version.env
|
||||||
|
|
||||||
commit_changes:
|
commit_changes:
|
||||||
image: debian:latest
|
image: debian:latest
|
||||||
|
secrets: [ GONETS ]
|
||||||
commands:
|
commands:
|
||||||
- source version.env
|
- source version.env
|
||||||
- git config user.name "$GIT_AUTHOR_NAME"
|
- git config user.name "s.galanskiy"
|
||||||
- git config user.email "$GIT_AUTHOR_EMAIL"
|
- git config user.email "s.galanskiy@gossys.dev"
|
||||||
- git checkout develop
|
- git checkout develop
|
||||||
- git commit -am "Релиз $VERSION"
|
- git commit -am "Релиз $VERSION"
|
||||||
- git tag "v$VERSION"
|
- git tag "v$VERSION"
|
||||||
- git push origin develop
|
- git push https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git develop
|
||||||
- git push origin "v$VERSION"
|
- 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