Skip to content

Update runtime.py

Update runtime.py #76

name: Action Test Macos
on:
push:
paths:
- '.github/workflows/action-test-macos.yaml'
- 'action.yaml'
- 'runtime.py'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
orchestration:
runs-on: macos-latest
outputs:
tasks: ${{ steps.run.outputs.tasks }}
steps:
- uses: stack-spot/runtime-manager-action@main
id: run
with:
CLIENT_ID: ${{ secrets.CLIENT_ID }}
CLIENT_KEY: ${{ secrets.CLIENT_KEY }}
CLIENT_REALM: ${{ secrets.CLIENT_REALM }}
WORKSPACE: Runtimes
ENVIRONMENT: production
VERSION_TAG: ${{ github.sha }}
TF_STATE_BUCKET_NAME: test
TF_STATE_REGION: test
IAC_BUCKET_NAME: test
IAC_REGION: test
VERBOSE: true
- name: Check Run Tasks Data
run: |
echo "Tasks: ${{ steps.run.outputs.tasks }}"
provision:
runs-on: macos-latest
needs: [orchestration]
strategy:
matrix:
task: ${{ fromJSON(needs.orchestration.outputs.tasks) }}
fail-fast: true
max-parallel: 1
steps:
- name: Worker IAC
if: contains( matrix.task.taskType , 'IAC')
run: echo ${{ matrix.task.runTaskId }}
- name: Worker DEPLOY
if: contains( matrix.task.taskType , 'DEPLOY')
run: echo ${{ matrix.task.runTaskId }}
- name: Worker DESTROY
if: contains( matrix.task.taskType , 'DESTROY')
run: echo ${{ matrix.task.runTaskId }}