Skip to content

Commit

Permalink
CI/CD fixes; CR-476
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-codefresh authored Nov 2, 2020
2 parents 85a407e + b3c6276 commit 96a0126
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 16 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.0
0.13.1
26 changes: 21 additions & 5 deletions codefresh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
main_clone:
stage: Build & Test
type: git-clone
repo: codefresh-io/pikolo
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
git: cf_github
revision: ${{CF_REVISION}}

Expand Down Expand Up @@ -39,12 +39,14 @@ steps:

create_git_tag:
title: Push tag to git
image: codefresh/cli
image: codefreshio/ci-helpers
stage: Push & Release
commands:
- source /get-token/get-gh-token.sh
- cf_export GITHUB_TOKEN
- export OLD_ORIGIN=$(git remote get-url origin)
- git remote rm origin
- git remote add origin https://${{GITHUB_TOKEN}}@github.com/codefresh-io/pikolo.git
- git remote add origin https://${GITHUB_TOKEN}@github.com/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}.git
- git tag v${{VERSION}}
- git push --tags
- git remote rm origin
Expand Down Expand Up @@ -90,9 +92,23 @@ steps:
on:
- success

push_cli_image_quay:
title: "Push image to Quay"
stage: Push & Release
type: push
candidate: ${{build}}
tags:
- latest
- ${{VERSION}}
registry: ${{REGISTRY_INTEGRATION_QUAY}}
when:
steps:
- name: build
on:
- success

push_cli_image:
title: "Push image"
push_cli_image_dockerub:
title: "Push image to Dockerhub"
stage: Push & Release
type: push
candidate: ${{build}}
Expand Down
20 changes: 10 additions & 10 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ builds:
- darwin
- linux
- windows
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 96a0126

Please sign in to comment.