update runtime.py request data #14
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: 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.tasks.outputs.tasks }} | |
runId: ${{ steps.tasks.outputs.runId }} | |
runType: ${{ steps.tasks.outputs.runType }} | |
steps: | |
- uses: stack-spot/runtime-manager-action@main | |
id: tasks | |
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 | |
- name: Check Run Data | |
run: | | |
echo "RunId: ${{ steps.tasks.outputs.runId }}" | |
echo "RunType: ${{ steps.tasks.outputs.runType }}" | |
echo "Tasks: ${{ steps.tasks.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 }} |