File tree Expand file tree Collapse file tree 5 files changed +29
-5
lines changed
helm/ibm-block-storage-attacher/templates Expand file tree Collapse file tree 5 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM registry. access. redhat.com/ubi8/ubi-minimal:8.3-201
1
+ FROM wcp-alchemy-containers-team- access- redhat-docker-remote.artifactory.swg-devops .com/ubi8/ubi-minimal:8.3-201
2
2
# Default values
3
3
ARG git_commit_id=unknown
4
4
ARG git_remote_url=unknown
5
5
ARG build_date=unknown
6
- ARG jenkins_build_number=unknown
6
+ # ARG jenkins_build_number=unknown
7
+ ARG travis_build_number=unknown
8
+ ARG REPO_SOURCE_URL=blank
9
+ LABEL razee.io/source-url="${REPO_SOURCE_URL}"
10
+ ARG BUILD_URL=blank
11
+ LABEL razee.io/build-url="${BUILD_URL}"
7
12
8
13
# Add Labels to image to show build details
9
14
LABEL git-commit-id=${git_commit_id}
10
15
LABEL git-remote-url=${git_remote_url}
11
16
LABEL build-date=${build_date}
12
- LABEL jenkins-build-number=${jenkins_build_number}
17
+ # LABEL jenkins-build-number=${jenkins_build_number}
18
+ LABEL travis_build_number=${travis_build_number}
13
19
14
- RUN microdnf update
15
20
RUN mkdir -p /home/armada-storage/
16
21
RUN mkdir -p /host
17
22
ADD images/systemutil /home/armada-storage
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ GIT_REMOTE_URL="$(shell git config --get remote.origin.url 2>/dev/null)"
11
11
BUILD_DATE ="$(shell date -u +"% Y-% m-% dT% H:% M:% SZ") "
12
12
# Jenkins vars. Set to `unknown` if the variable is not yet defined
13
13
BUILD_NUMBER? =unknown
14
+ TRAVIS_BUILD_NUMBER ?= unknown
14
15
OSS_FILES := Dockerfile go.mod
15
16
16
17
.PHONY : all
@@ -57,7 +58,10 @@ buildimage: build-systemutil
57
58
--build-arg git_commit_id=${GIT_COMMIT_SHA} \
58
59
--build-arg git_remote_url=${GIT_REMOTE_URL} \
59
60
--build-arg build_date=${BUILD_DATE} \
60
- --build-arg jenkins_build_number=${BUILD_NUMBER} \
61
+ # --build-arg jenkins_build_number=${BUILD_NUMBER} \
62
+ --build-arg travis_build_number=${TRAVIS_BUILD_NUMBER} \
63
+ --build-arg REPO_SOURCE_URL=${REPO_SOURCE_URL} \
64
+ --build-arg BUILD_URL=${BUILD_URL} \
61
65
-t $(IMAGE):$(VERSION) -f Dockerfile .
62
66
63
67
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ metadata:
7
7
chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
8
8
release : {{ .Release.Name }}
9
9
heritage : {{ .Release.Service }}
10
+ annotations :
11
+ razee.io/source-url : xxxREPO_SOURCE_URLxxx
12
+ razee.io/build-url : xxxBUILD_URLxxx
10
13
provisioner : ibm.io/ibmc-blockattacher
11
14
parameters :
12
15
attach : " true"
Original file line number Diff line number Diff line change @@ -8,6 +8,9 @@ metadata:
8
8
chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9
9
release : {{ .Release.Name }}
10
10
heritage : {{ .Release.Service }}
11
+ annotations :
12
+ razee.io/source-url : xxxREPO_SOURCE_URLxxx
13
+ razee.io/build-url : xxxBUILD_URLxxx
11
14
spec :
12
15
selector :
13
16
matchLabels :
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ metadata:
9
9
chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
10
10
release : {{ .Release.Name }}
11
11
heritage : {{ .Release.Service }}
12
+ annotations :
13
+ razee.io/source-url : xxxREPO_SOURCE_URLxxx
14
+ razee.io/build-url : xxxBUILD_URLxxx
12
15
imagePullSecrets :
13
16
- name : bluemix-default-secret
14
17
- name : bluemix-default-secret-regional
@@ -30,6 +33,9 @@ metadata:
30
33
chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
31
34
release : {{ .Release.Name }}
32
35
heritage : {{ .Release.Service }}
36
+ annotations :
37
+ razee.io/source-url : xxxREPO_SOURCE_URLxxx
38
+ razee.io/build-url : xxxBUILD_URLxxx
33
39
rules :
34
40
- apiGroups : [""]
35
41
resources : ["persistentvolumes"]
@@ -45,6 +51,9 @@ metadata:
45
51
chart : {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
46
52
release : {{ .Release.Name }}
47
53
heritage : {{ .Release.Service }}
54
+ annotations :
55
+ razee.io/source-url : xxxREPO_SOURCE_URLxxx
56
+ razee.io/build-url : xxxBUILD_URLxxx
48
57
subjects :
49
58
- kind : ServiceAccount
50
59
name : {{ .Chart.Name }}
You can’t perform that action at this time.
0 commit comments