From 25280fcb3f63ff2937649b92a3df8ab6821c759d Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Wed, 17 Nov 2021 17:33:51 +0200 Subject: [PATCH] Update devfile (#1179) * fix: Devfile Signed-off-by: Anatolii Bazko --- devfile.yaml | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 100a27d0f..6f067c134 100644 --- a/devfile.yaml +++ b/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