Skip to content

Commit

Permalink
promote
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Jan 29, 2025
1 parent 586dac3 commit f4e59c5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/promote-staging-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
if: github.event.inputs.confirm_promotion == 'promote'

env:
APP_NAME: react-webpack-rails-tutorial
CPLN_ORG: ${{ secrets.CPLN_ORG }}
UPSTREAM_TOKEN: ${{ secrets.STAGING_TOKEN }}
APP_NAME: ${{ vars.PRODUCTION_APP_NAME }}
CPLN_ORG: ${{ secrets.CPLN_ORG_PRODUCTION }}
CPLN_TOKEN: ${{ secrets.CPLN_TOKEN_PRODUCTION }}
UPSTREAM_TOKEN: ${{ secrets.CPLN_TOKEN_STAGING }}

steps:
- name: Checkout code
Expand All @@ -30,7 +31,7 @@ jobs:
- name: Promote Staging to Production
id: promote
run: |
echo "🚀 Starting promotion from staging to production..."
echo "🚀 Starting promotion from staging to production... for app ${APP_NAME}"
if ! cpflow promote-app-from-upstream -a "${APP_NAME}" -t "${UPSTREAM_TOKEN}" --org "${CPLN_ORG}"; then
echo "❌ Failed to promote staging to production"
Expand Down

0 comments on commit f4e59c5

Please sign in to comment.