Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .goreleaser.yml

This file was deleted.

35 changes: 11 additions & 24 deletions codefresh.yaml
Original file line number Diff line number Diff line change
@@ -1,46 +1,33 @@
version: '1.0'

stages:
- Prepare
- Release

mode: parallel

steps:

CreatingGitTag:
title: Push tag to git
image: codefresh/cli
stage: Release
commands:
- export VERSION=$(cat VERSION)
- export OLD_ORIGIN=$(git remote get-url origin)
- git remote rm origin
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/go-sdk.git
- git tag v$VERSION
- git push --tags
- git remote rm origin
- git remote add origin $OLD_ORIGIN
fail_fast: false
when:
steps:
- name: main_clone
branch:
only:
- master
main_clone:
stage: Prepare
title: clone repository
type: git-clone
git: cf_github
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
revision: ${{CF_BRANCH}}

ReleasingBinaries:
title: Create release in Github
image: goreleaser/goreleaser
image: quay.io/codefresh/golang-ci-helper:latest
stage: Release
fail_fast: false
commands:
- go mod download
- goreleaser release -f .goreleaser.yml --rm-dist --skip-validate
- gh release create --repo ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} -t $VERSION -n $VERSION $VERSION
when:
steps:
- name: CreatingGitTag
on:
- finished
branch:
only:
- master
- master