Skip to content

Commit

Permalink
install sample Github integration with custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbloss committed Dec 20, 2024
1 parent 0000239 commit 33cfe86
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/custom_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ jobs:
run: |
task factory-reset -y
task apply-demo -- -auto-approve
task install-sample-integration
21 changes: 21 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ tasks:
- task: terraform-command
vars: { TF_COMMAND: '{{index .MATCH 0}}', TF_CMD_DIR: "{{.WORKSPACE_DIR}}" }

install-sample-integration:
desc: Install sample Github integration
deps:
- install-cli
vars:
GRAPHQL_QUERY: mutation createSampleGitIntegration { sampleIntegrationCreate { integration { name } } }
cmds:
- opslevel graphql -H "GraphQL-Visibility=internal" -q='{{.GRAPHQL_QUERY}}'

terraform-validate:
internal: true
cmds:
Expand All @@ -97,6 +106,18 @@ tasks:
- task: install-terraform
- "terraform -chdir={{.TF_CMD_DIR}} {{.TF_COMMAND}} {{.CLI_ARGS}}"

install-cli:
internal: true
platforms: [darwin]
preconditions:
- sh: 'which brew'
msg: '"brew" needed to install OpsLevel CLI - see https://brew.sh'
status:
- test -n "command -v opslevel"
cmds:
- echo "Installing OpsLevel CLI..."
- brew install opslevel/tap/cli

install-terraform:
internal: true
platforms: [darwin]
Expand Down

0 comments on commit 33cfe86

Please sign in to comment.