Skip to content

Commit 0a6e3fb

Browse files
committed
attempt2
1 parent 0322af8 commit 0a6e3fb

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

+5-8
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,21 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: github.event.inputs.confirm_promotion == 'promote'
1515

16-
env:
17-
APP_NAME: ${{ vars.STAGING_APP_NAME }}
18-
UPSTREAM_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}
19-
2016
steps:
2117
- name: Checkout code
2218
uses: actions/checkout@v4
2319

2420
- name: Setup Environment
2521
uses: ./.github/actions/setup-environment
26-
env:
27-
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_PRODUCTION }}
22+
with:
23+
token: ${{ secrets.CPLN_TOKEN_PRODUCTION }}
24+
org: ${{ vars.CPLN_ORG_PRODUCTION }}
2825

2926
- name: Copy Image from Staging
30-
run: cpflow copy-image-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" -v
27+
run: cpflow copy-image-from-upstream -a "${{ vars.STAGING_APP_NAME }}" -t "${{ secrets.CPLN_TOKEN_STAGING }}" -v
3128

3229
- name: Deploy Image to Production
33-
run: cpflow deploy-image -v
30+
run: cpflow deploy-image -v --run-release-phase
3431

3532
- name: Create GitHub Release
3633
if: success()

0 commit comments

Comments
 (0)