Update devfile (#1179)

* fix: Devfile

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1180/head
Anatolii Bazko 2021-11-17 17:33:51 +02:00 committed by GitHub
parent 065a18bf40
commit 25280fcb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 16 deletions

View File

@ -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