using minio-openwrt secret
This commit is contained in:
@@ -24,6 +24,7 @@ spec:
|
|||||||
- name: version
|
- name: version
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
- name: minio-openwrt
|
||||||
resources:
|
resources:
|
||||||
inputs:
|
inputs:
|
||||||
- name: openwrt-configs
|
- name: openwrt-configs
|
||||||
@@ -59,6 +60,32 @@ spec:
|
|||||||
# build env does not like to be run as root....
|
# build env does not like to be run as root....
|
||||||
export FORCE_UNSAFE_CONFIGURE=1
|
export FORCE_UNSAFE_CONFIGURE=1
|
||||||
make -j6 download world $(params.make_flags)
|
make -j6 download world $(params.make_flags)
|
||||||
|
- name: upload-assets
|
||||||
|
image: docker.io/minio/mc
|
||||||
|
envVar:
|
||||||
|
- name: MINIO_HOST
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: $(params.secret)
|
||||||
|
key: endpoint
|
||||||
|
- name: MINIO_ACCESS_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: $(params.secret)
|
||||||
|
key: username
|
||||||
|
- name: MINIO_SECRET_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: $(params.secret)
|
||||||
|
key: password
|
||||||
|
script: |
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
cd /usr/src/openwrt/bin
|
||||||
|
#export MINIO_HOST=https://minio.live-infra.svc.cluster.local:9443
|
||||||
|
#export MINIO_ACCESS_KEY=openwrt
|
||||||
|
#export MINIO_SECRET_KEY=eFVneg8I08MsE3tCeBDPxsMu9M2V2Fvy
|
||||||
|
mc alias set minio-openwrt $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||||
|
mc mirror --remove --insecure -a . minio-openwrt/openwrt
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: usr-src
|
- name: usr-src
|
||||||
mountPath: /usr/src
|
mountPath: /usr/src
|
||||||
|
|||||||
Reference in New Issue
Block a user