Skip to content

Commit 19b07c9

Browse files
Pipeline fixes:
* get GITHUB_TOKEN automatically in the git tag step * do not use hardcoded repo owner and name * fix goreleaser spec (deprecated archive)
1 parent 85a407e commit 19b07c9

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

codefresh.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ steps:
1010
main_clone:
1111
stage: Build & Test
1212
type: git-clone
13-
repo: codefresh-io/pikolo
14-
git: cf_github
13+
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
14+
git: github
1515
revision: ${{CF_REVISION}}
1616

1717
calculate_version:
@@ -39,12 +39,14 @@ steps:
3939

4040
create_git_tag:
4141
title: Push tag to git
42-
image: codefresh/cli
42+
image: codefreshio/ci-helpers
4343
stage: Push & Release
4444
commands:
45+
- source /get-token/get-gh-token.sh
46+
- cf_export GITHUB_TOKEN
4547
- export OLD_ORIGIN=$(git remote get-url origin)
4648
- git remote rm origin
47-
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/pikolo.git
49+
- git remote add origin https://${GITHUB_TOKEN}@github.com/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}.git
4850
- git tag v${{VERSION}}
4951
- git push --tags
5052
- git remote rm origin

goreleaser.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ builds:
55
- darwin
66
- linux
77
- windows
8-
archive:
9-
replacements:
10-
darwin: Darwin
11-
linux: Linux
12-
windows: Windows
13-
386: i386
14-
amd64: x86_64
15-
format_overrides:
16-
- goos: windows
17-
format: zip
8+
archives:
9+
- replacements:
10+
darwin: Darwin
11+
linux: Linux
12+
windows: Windows
13+
386: i386
14+
amd64: x86_64
15+
format_overrides:
16+
- goos: windows
17+
format: zip
1818
checksum:
1919
name_template: 'checksums.txt'
2020
snapshot:

0 commit comments

Comments
 (0)