Skip to content

Commit

Permalink
create tag on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
olegsu committed Feb 25, 2020
1 parent 067515b commit d682268
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .codefresh/codefresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@ steps:
on:
- finished

create_git_tag:
title: Push tag to git
image: codefresh/cli
stage: Release
commands:
- export OLD_ORIGIN=$(git remote get-url origin)
- git remote rm origin
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/venona.git
- git tag v${{VERSION}}
- git push --tags
- git remote rm origin
- git remote add origin $OLD_ORIGIN

fail_fast: false
when:
steps:
- name: calculate_version
- name: main_clone
branch:
only:
- release-1.0

release_binaries:
title: Create release in Github with venona CLI
Expand All @@ -131,8 +152,9 @@ steps:
- goreleaser release -f .goreleaser.yml --rm-dist --skip-validate # pre-release
when:
steps:
- name: calculate_version
- name: main_clone
- name: create_git_tag
on:
- finished
branch:
only:
- release-1.0
Expand Down

0 comments on commit d682268

Please sign in to comment.