Skip to content

Commit

Permalink
Add krel obs stage to krel stage
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Mudrinić <[email protected]>
  • Loading branch information
xmudrii committed May 26, 2023
1 parent d53cce7 commit 9e23687
Showing 1 changed file with 32 additions and 7 deletions.
39 changes: 32 additions & 7 deletions gcb/stage/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ timeout: 14400s
#
# (Please do not remove this security notice.)
secrets:
- kmsKeyName: projects/k8s-releng-prod/locations/global/keyRings/release/cryptoKeys/encrypt-0
# - kmsKeyName: projects/k8s-releng-prod/locations/global/keyRings/release/cryptoKeys/encrypt-0
# secretEnv:
# GITHUB_TOKEN: CiQAIkWjMHZABAFJqEFQir1WipsO3rAGkhw1pwhp1er/m3px/kESUQBLz1D+hzzlrovRVuetP+sCqzjfKZl/iB0aiQIT36imOk8j7laYDZjprxGGQQQiUVaqYvstroJH3D53f4JKQHzXUvWziSSnhH3HFZz++RT/yQ==
# DOCKERHUB_TOKEN: CiQAIkWjMJDKU6Hu3pJIBf31dIl7xJQQEiccN7k1cCzGadGoT2gSTQBLz1D+uc9PMusYnFvXtJi25OqEUktDJs28d09jDyj9gcyTx9iX/JvOE3Dn2qnhrjwrUMk5bBhFjR7dHCr4mJgEVD5dXrd6yLGbDBu2
- kmsKeyName: projects/k8s-releng-prod/locations/global/keyRings/release/cryptoKeys/obs
secretEnv:
GITHUB_TOKEN: CiQAIkWjMHZABAFJqEFQir1WipsO3rAGkhw1pwhp1er/m3px/kESUQBLz1D+hzzlrovRVuetP+sCqzjfKZl/iB0aiQIT36imOk8j7laYDZjprxGGQQQiUVaqYvstroJH3D53f4JKQHzXUvWziSSnhH3HFZz++RT/yQ==
DOCKERHUB_TOKEN: CiQAIkWjMJDKU6Hu3pJIBf31dIl7xJQQEiccN7k1cCzGadGoT2gSTQBLz1D+uc9PMusYnFvXtJi25OqEUktDJs28d09jDyj9gcyTx9iX/JvOE3Dn2qnhrjwrUMk5bBhFjR7dHCr4mJgEVD5dXrd6yLGbDBu2
OBS_PASSWORD: CiQAXrrgPTLzLId8sRADEJYdBeOCBv7djdomvYV/9cdEbNKUBrMSPAA2Zz9jrArtxsYUKk1if2nZE6w0wPosrAKDpko8c/WErfYajTQ/yF88gZd3DdllDHmYzTqHCA0eLbie9A==

steps:
- name: gcr.io/cloud-builders/git
Expand Down Expand Up @@ -62,6 +65,30 @@ steps:
- "./compile-release-tools"
- "krel"

# - name: gcr.io/k8s-staging-releng/k8s-cloud-builder:${_KUBE_CROSS_VERSION}
# dir: "/workspace"
# env:
# - "TOOL_ORG=${_TOOL_ORG}"
# - "TOOL_REPO=${_TOOL_REPO}"
# - "TOOL_REF=${_TOOL_REF}"
# - "BUILD_ID=${BUILD_ID}"
# - "K8S_ORG=${_K8S_ORG}"
# - "K8S_REPO=${_K8S_REPO}"
# - "K8S_REF=${_K8S_REF}"
# - GOOGLE_SERVICE_ACCOUNT_NAME=krel-staging@k8s-releng-prod.iam.gserviceaccount.com
# secretEnv:
# - GITHUB_TOKEN
# - DOCKERHUB_TOKEN
# args:
# - "bin/krel"
# - "stage"
# - "--submit=false"
# - "${_NOMOCK}"
# - "--log-level=${_LOG_LEVEL}"
# - "--type=${_TYPE}"
# - "--branch=${_RELEASE_BRANCH}"
# - "--build-version=${_BUILDVERSION}"

- name: gcr.io/k8s-staging-releng/k8s-cloud-builder:${_KUBE_CROSS_VERSION}
dir: "/workspace"
env:
Expand All @@ -72,14 +99,12 @@ steps:
- "K8S_ORG=${_K8S_ORG}"
- "K8S_REPO=${_K8S_REPO}"
- "K8S_REF=${_K8S_REF}"
- GOOGLE_SERVICE_ACCOUNT_NAME=krel-staging@k8s-releng-prod.iam.gserviceaccount.com
secretEnv:
- GITHUB_TOKEN
- DOCKERHUB_TOKEN
- OBS_PASSWORD
args:
- "bin/krel"
- "obs"
- "stage"
- "--submit=false"
- "${_NOMOCK}"
- "--log-level=${_LOG_LEVEL}"
- "--type=${_TYPE}"
Expand Down

0 comments on commit 9e23687

Please sign in to comment.