Skip to content

Commit

Permalink
fix codefresh.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg Sucharevich committed Dec 17, 2018
1 parent 4731adc commit 4072e70
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.7
0.0.8
24 changes: 18 additions & 6 deletions codefresh.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
version: '1.0'

stages:
- Integration
- Delivery

steps:

Prepare:
title: Update Helm package version
image: alpine:3.8
stage: Integration
commands:
- apk add --no-cache curl jq python py-pip
- pip install yq
Expand All @@ -12,6 +18,7 @@ steps:
BuildingDockerImage:
title: Building Docker Image
type: build
stage: Integration
image_name: olsynt/iris
working_directory: ./
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
Expand All @@ -27,6 +34,7 @@ steps:
PushingToDockerRegistryVersion:
title: Pushing to Docker Registry
type: push
stage: Delivery
candidate: '${{BuildingDockerImage}}'
tags:
- ${{CF_BRANCH_TAG_NORMALIZED}}
Expand All @@ -36,6 +44,7 @@ steps:
PushingToDockerRegistryLatest:
title: Pushing to Docker Registry
type: push
stage: Delivery
candidate: '${{BuildingDockerImage}}'
tag: latest
registry: dockerhub
Expand All @@ -44,16 +53,18 @@ steps:
only:
- master

Push:
PushingHelmChart:
title: Push Helm package to repo
stage: Delivery
image: codefresh/cfstep-helm:2.9.0
environment:
- ACTION=push
- CHART_REF=iris

GitTag:
CreatingGitTag:
title: Push tag to git
image: codefresh/cli
stage: Delivery
commands:
- git remote rm origin
- git remote add origin https://olegsu:${{GITHUB_TOKEN}}@github.com/olegsu/iris.git
Expand All @@ -65,14 +76,15 @@ steps:
only:
- master

Release:
Releasing:
image: goreleaser/goreleaser
working_directory: /go/src/github.com/olegsus/iris
stage: Delivery
working_directory: /go/src/github.com/olegsu/iris
binds:
- ./iris:/go/src/github.com/olegsus/iris
- ./iris:/go/src/github.com/olegsu/iris
fail_fast: false
commands:
- goreleaser release -f .goreleaser.yml --rm-dist
- goreleaser release -f .goreleaser.yml --rm-dist --skip-validate
when:
branch:
only:
Expand Down

0 comments on commit 4072e70

Please sign in to comment.