Nicolas MASSE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
7 deletions
-
devfile.yaml
|
|
|
@ -30,17 +30,11 @@ components: |
|
|
|
- value: /tmp/.cache |
|
|
|
name: GOCACHE |
|
|
|
commands: |
|
|
|
- name: 0. Install pre-requisites |
|
|
|
actions: |
|
|
|
- workdir: '${CHE_PROJECTS_ROOT}/golang-health-check' |
|
|
|
type: exec |
|
|
|
command: if [ -f tools.go ]; then go install -v $(go list -f '{{join .Imports " "}}' tools.go); fi |
|
|
|
component: go-cli |
|
|
|
- name: 1. Build the application |
|
|
|
actions: |
|
|
|
- workdir: '${CHE_PROJECTS_ROOT}/golang-health-check' |
|
|
|
type: exec |
|
|
|
command: go build |
|
|
|
command: echo "Pre-requisites..." ; if [ -f tools.go ]; then go install -v $(go list -f '{{join .Imports " "}}' tools.go); fi; echo "Code generation..."; go generate ./... ; echo "Compilation..." ; go build |
|
|
|
component: go-cli |
|
|
|
- name: 2. Run the application |
|
|
|
actions: |
|
|
|
|