Skip to content

Commit 3606e16

Browse files
committed
Pass upstream token to cpflow image copy
1 parent eb1dbb2 commit 3606e16

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/cpflow-promote-staging-to-production.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,13 @@ jobs:
203203
204204
- name: Copy image from staging
205205
env:
206-
# Pass the upstream token via env rather than `-t` so it doesn't appear in /proc/<pid>/cmdline.
207206
CPLN_UPSTREAM_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
208207
PRODUCTION_APP_NAME: ${{ vars.PRODUCTION_APP_NAME }}
209208
CPLN_ORG_PRODUCTION: ${{ vars.CPLN_ORG_PRODUCTION }}
210209
shell: bash
211210
run: |
212211
set -euo pipefail
213-
cpflow copy-image-from-upstream -a "${PRODUCTION_APP_NAME}" --org "${CPLN_ORG_PRODUCTION}"
212+
cpflow copy-image-from-upstream -a "${PRODUCTION_APP_NAME}" -t "${CPLN_UPSTREAM_TOKEN}" --org "${CPLN_ORG_PRODUCTION}"
214213
215214
- name: Deploy image to production
216215
env:

0 commit comments

Comments
 (0)