forked from alexei-led/pumba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodefresh.yaml
29 lines (25 loc) · 853 Bytes
/
codefresh.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '1.0'
steps:
go_builder:
type: build
description: create Pumba Go builder image (Go, tools, and libraries)
dockerfile: Dockerfile.build
working-directory: ${{main_clone}}
image-name: pumba/builder
build_arguments:
- GH_USER=gaia-adm
- GH_PROJECT=pumba
- GH_SHA=${{CF_REVISION}}
go_pumba:
description: compile Pumba binary, using builder image
image: ${{go_builder}}
working-directory: ${{main_clone}}
commands:
- echo $PWD && mkdir -p dist/bin && export DIST=$PWD/dist/bin; echo $DIST && cd /go/src/github.com/gaia-adm/pumba && echo $PWD && echo $DIST && script/go_build.sh
package-pumba:
type: build
description: build Pumba into Docker container
dockerfile: Dockerfile.dist
working-directory: ${{main_clone}}/dist
image-name: pumba/pumba
tag: cf