Dashboard-wise Deployment #2
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
name: Dashboard-wise Deployment | |
on: | |
workflow_dispatch: | |
inputs: | |
plants: | |
description: 'Plants to deploy' | |
required: true | |
default: '' | |
dashboard_uid: | |
description : 'Dashboard uid to deploy' | |
required: true | |
default: '' | |
jobs: | |
deploy_to_production: | |
runs-on: ubuntu-latest | |
environment: development | |
env: | |
AWS_DEFAULT_REGION: eu-central-1 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
DEEPL_API_KEY: ${{ secrets.DEEPL_API_KEY }} | |
INPUT_ORGS: ${{github.event.inputs.plants}} | |
INPUT_DASHBOARD_UID: ${{github.event.inputs.dashboard_uid}} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
pip install requests | |
- name: Run Deployment script | |
run: | | |
python .github/tvarit/dashboard-wise-deployment.py |