Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for Github Actions for Staging and Production #619

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
rework-main-job-deploy
justin808 committed Jan 27, 2025
commit 1601222b4c88c438d4d072fb56c950d86267f7c3
8 changes: 8 additions & 0 deletions .github/workflows/deploy-to-control-plane.yml
Original file line number Diff line number Diff line change
@@ -59,6 +59,14 @@ jobs:

echo "All required secrets and variables are set"

- name: Install Control Plane CLI
run: |
curl -L https://github.com/controlplane-com/cli/releases/latest/download/cpln-linux-amd64.tar.gz | tar xz
sudo mv cpln /usr/local/bin/
curl -L https://github.com/controlplane-com/cpln-cli-flow/releases/latest/download/cpflow-linux-amd64.tar.gz | tar xz
sudo mv cpflow /usr/local/bin/
cpln auth token "${{ env.CPLN_TOKEN }}"

- name: Get PR Number for Push Event
if: github.event_name == 'push'
id: get-pr