Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move create-clusters workflow from test-gh-actions #17

Merged
merged 47 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
2c41dcc
add shared workflow for create-clusters
tommartensen Aug 8, 2023
78e6239
fix
tommartensen Aug 8, 2023
436a6c7
use local actions instead of v1
tommartensen Aug 8, 2023
c6f348e
check out
tommartensen Aug 8, 2023
5024eaf
fix?
tommartensen Aug 8, 2023
a0defb4
debug
tommartensen Aug 8, 2023
1f8893c
require workflow-ref
tommartensen Aug 8, 2023
f809d71
debug
tommartensen Aug 8, 2023
d9764e1
debug
tommartensen Aug 8, 2023
32d0c2f
.
tommartensen Aug 8, 2023
029be1b
.
tommartensen Aug 8, 2023
8d1b982
sanity
tommartensen Aug 9, 2023
a977d85
debug
tommartensen Aug 9, 2023
f9509ff
lmaa
tommartensen Aug 9, 2023
4985c1c
run more
tommartensen Aug 9, 2023
67b44c7
check out code
tommartensen Aug 9, 2023
6a728f8
remox
tommartensen Aug 9, 2023
11cd9a4
insanity
tommartensen Aug 9, 2023
b7bb1b7
fix
tommartensen Aug 9, 2023
9494d55
debug
tommartensen Aug 9, 2023
842bf6d
debug
tommartensen Aug 9, 2023
9a09a49
debug
tommartensen Aug 9, 2023
4f2fc14
debug
tommartensen Aug 9, 2023
345a329
eval
tommartensen Aug 9, 2023
93a4bd3
fix empty
tommartensen Aug 9, 2023
5e7e946
shrug
tommartensen Aug 9, 2023
eb0434c
use local script
tommartensen Aug 9, 2023
cc07df9
manual action
tommartensen Aug 9, 2023
68f091e
debug
tommartensen Aug 9, 2023
0794bbd
no spaceg
tommartensen Aug 9, 2023
c7418db
use remote action
tommartensen Aug 9, 2023
bc94eb0
hardcode
tommartensen Aug 9, 2023
75e950b
revert
tommartensen Aug 9, 2023
a2e432c
question mark
tommartensen Aug 9, 2023
f68d232
all v1
tommartensen Aug 9, 2023
245f87c
use var
tommartensen Aug 9, 2023
1297b03
workflow ref
tommartensen Aug 9, 2023
ae922d0
hm
tommartensen Aug 9, 2023
adb083e
remove workflow-ref
tommartensen Aug 9, 2023
c92bf3a
add workflow-ref parameter to use local actions
tommartensen Aug 10, 2023
b56f8e7
fix
tommartensen Aug 10, 2023
e8c05f6
local action ?
tommartensen Aug 10, 2023
07a55b1
fix
tommartensen Aug 10, 2023
b716288
local action
tommartensen Aug 10, 2023
5c82d78
Merge branch 'main' into tm/create-clusters-workflow
tommartensen Aug 10, 2023
7b88a46
add readme, rename workflow
tommartensen Aug 10, 2023
022b932
fix
tommartensen Aug 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Workflows

## Create demo clusters for version

### All options

| Input | Description | Default |
| ------------------------------------------- | ------------------------------------------ | -------------- |
| [version](#version) | Main image version | |
| [create-k8s-cluster](#create-k8s-cluster) | Whether to create GKE cluster | `"false"` |
| [create-os4-cluster](#create-os4-cluster) | Whether to create Open Shift 4 cluster | `"false"` |
| [create-long-cluster](#create-long-cluster) | Whether to create GKE long-running cluster | `"false"` |
| [dry-run](#dry-run) | Whether it is a dry-run | `"false"` |
| [workflow-ref](#workflow-ref) | Reference of the called workflow | |

### Detailed options

#### version

Default value: unset

#### create-k8s-cluster

Default value: `false`

#### create-os4-cluster

Default value: `false`

#### create-long-cluster

Default value: `false`

#### dry-run

Default value: `false`

#### workflow-ref

Default value: unset

Must match the reference of the workflow in the `uses` keyword.

### Usage

```yaml
name: Create demo clusters for release candidate
jobs:
create-clusters:
name: Setup clusters
uses: stackrox/actions/.github/workflows/create-cluster.yml@v1
secrets: inherit
with:
version: ${{github.event.inputs.version}}
create-k8s-cluster: ${{github.event.inputs.create-k8s-cluster == 'true'}}
create-os4-cluster: ${{github.event.inputs.create-os4-cluster == 'true'}}
create-long-cluster: ${{github.event.inputs.create-long-cluster == 'true'}}
dry-run: ${{github.event.inputs.dry-run == 'true'}}
workflow-ref: v1
```
Loading