Skip to content

Commit

Permalink
wait for the cluster to be available
Browse files Browse the repository at this point in the history
probably we can use the oblt-cli binary in a script instead of using GH actions
  • Loading branch information
v1v committed Feb 17, 2025
1 parent d9d2635 commit 7f76e29
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ jobs:
permissions: >-
{
"contents": "write",
"pull_requests": "write"
"pull_requests": "read"
}
repositories: >-
["observability-test-environments"]
Expand All @@ -195,16 +195,18 @@ jobs:
with:
github-token: ${{ steps.get_token.outputs.token }}

- uses: elastic/oblt-actions/oblt-cli/cluster-create-ccs@v1
- uses: elastic/oblt-actions/oblt-cli/cluster-create-ccs@feature/wait-return-cluster-name
id: cluster_create
with:
github-token: ${{ steps.get_token.outputs.token }}
remote-cluster: 'edge-oblt'
cluster-name-prefix: 'dotnet'
gitops: false
wait: 15

- uses: elastic/oblt-actions/oblt-cli/cluster-credentials@v1
with:
cluster-name: "dotnet"
cluster-name: ${{ steps.cluster_create.outputs.cluster-name }}
github-token: ${{ steps.get_token.outputs.token }}

- run: echo "TBC"
Expand All @@ -214,4 +216,4 @@ jobs:
continue-on-error: true
with:
github-token: ${{ steps.get_token.outputs.token }}
cluster-name: "dotnet"
cluster-name: ${{ steps.cluster_create.outputs.cluster-name }}

0 comments on commit 7f76e29

Please sign in to comment.