Browse Source

fix build

master
Nicolas Massé 4 years ago
parent
commit
f31978eac1
  1. 27
      .openshiftio/application.yaml

27
.openshiftio/application.yaml

@ -32,6 +32,21 @@ objects:
version: '${RELEASE_VERSION}' version: '${RELEASE_VERSION}'
app: golang-health-check app: golang-health-check
spec: {} 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 - apiVersion: v1
kind: BuildConfig kind: BuildConfig
metadata: metadata:
@ -53,11 +68,15 @@ objects:
type: Git type: Git
strategy: strategy:
type: Source type: Source
sourceStrategy: dockerStrategy:
buildArgs:
- name: GIT_REPO
value: '${SOURCE_REPOSITORY_URL}'
- name: GIT_BRANCH
value: '${SOURCE_REPOSITORY_REF}'
from: from:
kind: DockerImage kind: "ImageStreamTag"
name: 'registry.fedoraproject.org/f29/golang' name: "golang:1.17-alpine"
incremental: true
status: status:
lastVersion: 0 lastVersion: 0
- apiVersion: v1 - apiVersion: v1

Loading…
Cancel
Save