Skip to content

Commit c32eec0

Browse files
committed
wip
1 parent a0d8f6d commit c32eec0

File tree

4 files changed

+25
-26
lines changed

4 files changed

+25
-26
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<p align="center"><img src="./docs/assets/cf.png" alt="Argo Logo"></p>
22

3-
[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/codefresh-inc/cli-v2%2Frelease?type=cf-1)]( https://g.codefresh.io/public/accounts/codefresh-inc/pipelines/new/60881f8199c9564ef31aac61)
3+
# Codefresh CLI v2
4+
5+
[![Codefresh build status]( https://g.codefresh.io/api/badges/pipeline/codefresh-inc/cli-v2%2Fci?type=cf-1&key=eyJhbGciOiJIUzI1NiJ9.NTY3MmQ4ZGViNjcyNGI2ZTM1OWFkZjYy.AN2wExsAsq7FseTbVxxWls8muNx_bBUnQWQVS8IgDTI)]( https://g.codefresh.io/pipelines/edit/new/builds?id=60ae2ae330acb8f9c9bace7f&pipeline=ci&projects=cli-v2&projectId=60ae2a8498763b36c241d563)
46
[![codecov](https://codecov.io/gh/codefresh-io/cli-v2/branch/main/graph/badge.svg?token=IDyZNfRUfY)](https://codecov.io/gh/codefresh-io/cli-v2)
5-
[![Documentation Status](https://readthedocs.org/projects/cli-v2/badge/?version=latest)](https://cli-v2.readthedocs.io/en/latest/?badge=latest)
6-
[![slack](https://img.shields.io/badge/slack-codefresh-brightgreen.svg?logo=slack)](https://codefresh.slack.com/archives/C01FG6M5KDY/)
7+
![GitHub release (latest by date)](https://img.shields.io/github/v/release/codefresh-io/cli-v2)
8+
![GitHub all releases](https://img.shields.io/github/downloads/codefresh-io/cli-v2/total)
79

810
## Introduction
911

10-
New Codefresh cli tool, using argocd-autopilot
12+
The new Codefresh CLI tool.
1113

1214
## Installation
1315
### Mac

build/Dockerfile.helper

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM golang:1.16.3-alpine3.13
2+
3+
RUN apk -U add --no-cache ca-certificates git make gcc g++ curl bash && update-ca-certificates
4+
5+
ENTRYPOINT [ "/bin/bash" ]

build/ci.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,38 +17,30 @@ steps:
1717
repo: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}
1818
revision: ${{CF_BRANCH}}
1919

20-
build_helper_image:
20+
prepare_env_vars: &deps
2121
stage: Prepare
22-
title: build helper image
23-
type: build
24-
image_name: helper
25-
tag: ${{CF_BRANCH_TAG_NORMALIZED}}
26-
dockerfile:
27-
content: |-
28-
FROM golang:1.16.3-alpine3.13
29-
RUN apk -U add --no-cache ca-certificates git make gcc g++ curl bash && update-ca-certificates
30-
ENTRYPOINT [ "/bin/bash" ]
31-
buildkit: true
32-
disable_push: true
22+
title: prepare-env
23+
image: quay.io/roi_codefresh/golang-ci-helper:latest
24+
commands:
25+
- cf_export GO111MODULE=on
26+
- cf_export GOCACHE=/codefresh/volume/gocache # change gopath to codefresh shared volume
27+
- cf_export GOPATH=/codefresh/volume/gopath
28+
- cf_export PATH=$PATH:/codefresh/volume/gopath/bin
3329
when:
3430
steps:
3531
- name: main_clone
3632
on:
3733
- success
3834

39-
prepare_env_vars: &deps
35+
download_modules:
36+
<<: *deps
4037
stage: Prepare
41-
title: prepare-env & download modules
42-
image: ${{build_helper_image}}
38+
title: download modules
4339
commands:
44-
- cf_export GO111MODULE=on
45-
- cf_export GOCACHE=/codefresh/volume/gocache # change gopath to codefresh shared volume
46-
- cf_export GOPATH=/codefresh/volume/gopath
47-
- cf_export PATH=$PATH:/codefresh/volume/gopath/bin
4840
- go mod download -x
4941
when:
5042
steps:
51-
- name: build_helper_image
43+
- name: prepare_env_vars
5244
on:
5345
- success
5446

@@ -61,7 +53,7 @@ steps:
6153
- make check-worktree
6254
when:
6355
steps:
64-
- name: prepare_env_vars
56+
- name: download_modules
6557
on:
6658
- success
6759

@@ -74,7 +66,7 @@ steps:
7466
- make check-worktree
7567
when:
7668
steps:
77-
- name: prepare_env_vars
69+
- name: download_modules
7870
on:
7971
- success
8072

docs/assets/cf.png

-9.95 KB
Loading

0 commit comments

Comments
 (0)