Update devfile (#1179)
* fix: Devfile Signed-off-by: Anatolii Bazko <abazko@redhat.com>pull/1180/head
parent
065a18bf40
commit
25280fcb3f
23
devfile.yaml
23
devfile.yaml
|
|
@ -35,7 +35,7 @@ components:
|
|||
memoryLimit: 1G
|
||||
type: dockerimage
|
||||
alias: dev
|
||||
image: 'quay.io/eclipse/che-golang-1.12:nightly'
|
||||
image: 'quay.io/eclipse/che-golang-1.14:next'
|
||||
env:
|
||||
- value: /go
|
||||
name: GOPATH
|
||||
|
|
@ -43,24 +43,15 @@ components:
|
|||
name: GOCACHE
|
||||
apiVersion: 1.0.0
|
||||
commands:
|
||||
- name: compile
|
||||
- name: Compile
|
||||
actions:
|
||||
- workdir: /projects/che-operator
|
||||
- workdir: /projects/src/github.com/eclipse-che/che-operator
|
||||
type: exec
|
||||
command: >-
|
||||
BINARY_PATH=/tmp/che-operator/che-operator && OOS=linux GOARCH=$ARCH
|
||||
CGO_ENABLED=0 go build -o ${BINARY_PATH} cmd/manager/main.go && echo
|
||||
"Compiled to $BINARY_PATH" && printf "\033[32mDone.\033[0m"
|
||||
command: make compile
|
||||
component: dev
|
||||
- name: test
|
||||
- name: Format
|
||||
actions:
|
||||
- workdir: /projects/che-operator
|
||||
- workdir: /projects/src/github.com/eclipse-che/che-operator
|
||||
type: exec
|
||||
command: go test -mod vendor ./...
|
||||
component: dev
|
||||
- name: format
|
||||
actions:
|
||||
- workdir: /projects/che-operator
|
||||
type: exec
|
||||
command: 'go fmt ./... && printf "\033[32mDone.\033[0m"'
|
||||
command: 'make fmt'
|
||||
component: dev
|
||||
|
|
|
|||
Loading…
Reference in New Issue