diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml index 999a641..94d6af0 100644 --- a/.woodpecker/release.yml +++ b/.woodpecker/release.yml @@ -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"