Skip to content

Commit

Permalink
revert matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed May 29, 2024
1 parent a930f5a commit 5228697
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-oblt-cli-cluster-create-custom-gitops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: test-oblt-cli-cluster-create-custom-gitops

on:
workflow_dispatch:
inputs:
dry-run:
description: 'Dry run'
required: true
default: false
type: boolean
push:
paths:
- '.github/workflows/test-oblt-cli-cluster-create-custom-gitops.yml'
- 'oblt-cli/cluster-create-custom/**'

permissions:
contents: read
id-token: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry-run == 'true'
uses: elastic/oblt-actions/google/auth@v1
- uses: elastic/oblt-actions/git/setup@v1
- uses: ./oblt-cli/cluster-create-custom
with:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
template: 'deploy-kibana'
cluster-name-prefix: 'testgithubaction'
gitops: true
dry-run: ${{ github.event.inputs.dry-run || false }}
parameters: '{"RemoteClusterName":"release-oblt","StackVersion":"8.7.0","KibanaDockerImage":"foo"}'
8 changes: 1 addition & 7 deletions .github/workflows/test-oblt-cli-cluster-create-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ permissions:

jobs:
test:
name: test
strategy:
matrix:
include:
- gitops: true
- gitops: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,6 +30,6 @@ jobs:
github-token: ${{ secrets.OBLT_CLI_GITHUB_TOKEN }}
template: 'deploy-kibana'
cluster-name-prefix: 'testgithubaction'
gitops: ${{ matrix.gitops }}
gitops: false
dry-run: ${{ github.event.inputs.dry-run || false }}
parameters: '{"RemoteClusterName":"release-oblt","StackVersion":"8.7.0","KibanaDockerImage":"foo"}'

0 comments on commit 5228697

Please sign in to comment.