File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 24
24
25
25
ARG BUILDER=registry.access.redhat.com/ubi9:latest
26
26
FROM ${BUILDER}
27
- RUN subscription-manager register --username=username --password=password && \
27
+ RUN subscription-manager register --username=${USERNAME} --password=${PASSWORD} && \
28
28
subscription-manager attach --auto && \
29
29
dnf repolist --disablerepo=* && \
30
30
subscription-manager repos --enable codeready-builder-for-rhel-9-x86_64-rpms && \
37
37
buildArgs :
38
38
- name : " BUILDER"
39
39
value : " registry.access.redhat.com/ubi9:latest"
40
+ env :
41
+ - name : " USERNAME"
42
+ valueFrom :
43
+ secretKeyRef :
44
+ key : username
45
+ name : rh-auth
46
+ - name : " PASSWORD"
47
+ valueFrom :
48
+ secretKeyRef :
49
+ key : password
50
+ name : rh-auth
40
51
41
52
output :
42
53
to :
You can’t perform that action at this time.
0 commit comments