Skip to content

Commit

Permalink
♻️ DEV-2539: Refactor Github Runner Workflows (#676)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudpossebot authored Aug 30, 2024
1 parent 4000285 commit 36c52a9
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions examples/snippets/stacks/workflows/github.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@

workflows:
all:
vendor/arc:
description: |
This workflow vendors all Github Action related components to the latest provided version
This workflow vendors all EKS/ARC related components to the latest provided version
steps:
- command: workflow vendor -f github
- command: workflow deploy/github-oidc-provider -f github
- command: workflow deploy/github-runners -f github

vendor:
- command: vendor pull --component github-oidc-provider
- command: vendor pull --component eks/actions-runner-controller
vendor/philips-labs:
description: |
This workflow vendors all Github Action related components to the latest provided version
This workflow vendors all Philips Labs self-hosted runner related components to the latest provided version
steps:
- command: vendor pull --component eks/actions-runner-controller
- command: vendor pull --component philips-labs-github-runners
- command: vendor pull --component github-oidc-provider
- command: vendor pull --component philips-labs-github-runners

deploy/github-oidc-provider:
description: |
Expand All @@ -28,19 +25,18 @@ workflows:
- command: terraform deploy github-oidc-provider -s plat-gbl-staging
- command: terraform deploy github-oidc-provider -s plat-gbl-prod

deploy/github-runners:
deploy/arc-github-runners:
description: |
This workflow deploys the github runners
This workflow deploys the EKS/ARC GitHub self-hosted runners
steps:
- command: terraform deploy iam-service-linked-roles -s core-gbl-auto
- command: workflow deploy/cluster -s core-use1-auto -f eks
- command: workflow deploy/resources -s core-use1-auto -f eks
- command: terraform deploy eks/actions-runner-controller -s core-use1-auto
- command: workflow deploy/pl-github-runners -f github

deploy/pl-github-runners:
upload/pl-secrets:
description: |
This workflow deploys the github runners from Philips Labs (component philips-labs-github-runners)
This workflow uploads the secrets for the Philips Labs self-hosted runners
steps:
- type: shell
command: |-
Expand Down Expand Up @@ -87,4 +83,9 @@ workflows:
exit 0
fi
AWS_PROFILE=acme-core-gbl-auto-admin chamber write pl-github-runners id "$APP_ID"
deploy/pl-github-runners:
description: |
This workflow deploys the github runners from Philips Labs (component philips-labs-github-runners)
steps:
- command: terraform deploy philips-labs-github-runners -s core-use1-auto

0 comments on commit 36c52a9

Please sign in to comment.