.github/workflows/karnot-deployment.yaml #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: Environment to deploy | |
required: true | |
type: choice | |
options: | |
- sepolia | |
- staging | |
jobs: | |
my_job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Debug Information | |
run: | | |
echo "Selected environment: ${{ github.event.inputs.environment }}" | |
echo "Current directory: $(pwd)" | |
echo "Directory contents:" | |
ls -R | |
- name: Run Karnot Cloud Pro | |
uses: karnotxyz/kcloud-pro-github-action@main | |
with: | |
input_file: ./deployments/karnot/deployment-config.yaml | |
environment: ${{ github.event.inputs.environment }} | |
KARNOT_CLOUD_URL: ${{ secrets.KARNOT_CLOUD_URL }} | |
KARNOT_CLOUD_TOKEN: ${{ secrets.KARNOT_CLOUD_TOKEN }} |