Skip to content

Commit

Permalink
Add encrypted docker token to stage cloud build
Browse files Browse the repository at this point in the history
Add the docker hub user token to the encrypted environment

Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
  • Loading branch information
puerco committed Mar 26, 2021
1 parent 1fade44 commit cdaea5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcb/stage/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ secrets:
- kmsKeyName: projects/k8s-releng-prod/locations/global/keyRings/release/cryptoKeys/encrypt-0
secretEnv:
GITHUB_TOKEN: CiQAIkWjMMb2OjCHCt1hHer4ZBqqD1Mj7+dfTpvkkuzS64nrGm0SUQBLz1D+4Zwp6te6JByO/zvGpHMhW6/i3BJMRYXtNTkyBGMnZuH+J3gQfhcGL2HXjr75lHaCxF4bxPr45xen5D/Kk1+paL+XpOU3KJIADy7uGQ==
DOCKERHUB_TOKEN: CiQAIkWjMJDKU6Hu3pJIBf31dIl7xJQQEiccN7k1cCzGadGoT2gSTQBLz1D+uc9PMusYnFvXtJi25OqEUktDJs28d09jDyj9gcyTx9iX/JvOE3Dn2qnhrjwrUMk5bBhFjR7dHCr4mJgEVD5dXrd6yLGbDBu2

steps:
- name: gcr.io/cloud-builders/git
Expand Down Expand Up @@ -50,6 +51,7 @@ steps:
- "TOOL_REF=${_TOOL_REF}"
secretEnv:
- GITHUB_TOKEN
- DOCKERHUB_TOKEN
args:
- "bin/krel"
- "stage"
Expand Down

0 comments on commit cdaea5b

Please sign in to comment.