From f31978eac1040fe555b97ce3bae386e9979ca63a Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 7 Feb 2022 15:59:41 +0100 Subject: [PATCH] fix build --- .openshiftio/application.yaml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.openshiftio/application.yaml b/.openshiftio/application.yaml index aea86f5..569ff1f 100644 --- a/.openshiftio/application.yaml +++ b/.openshiftio/application.yaml @@ -32,6 +32,21 @@ objects: version: '${RELEASE_VERSION}' app: golang-health-check spec: {} + - apiVersion: image.openshift.io/v1 + kind: ImageStream + metadata: + name: golang + spec: + lookupPolicy: + local: false + tags: + - from: + kind: DockerImage + name: docker.io/library/golang:1.17-alpine + importPolicy: {} + name: 1.17-alpine + referencePolicy: + type: Source - apiVersion: v1 kind: BuildConfig metadata: @@ -53,11 +68,15 @@ objects: type: Git strategy: type: Source - sourceStrategy: + dockerStrategy: + buildArgs: + - name: GIT_REPO + value: '${SOURCE_REPOSITORY_URL}' + - name: GIT_BRANCH + value: '${SOURCE_REPOSITORY_REF}' from: - kind: DockerImage - name: 'registry.fedoraproject.org/f29/golang' - incremental: true + kind: "ImageStreamTag" + name: "golang:1.17-alpine" status: lastVersion: 0 - apiVersion: v1