Skip to content

Commit 3d97c8a

Browse files
committed
use taskfile tasks for customer and cluster creation
- replace inline customer creation with task customer-create - replace inline cluster creation with task cluster-create - use default k3s distribution instead of embedded-cluster - increase cluster creation timeout to 15 minutes
1 parent 67335eb commit 3d97c8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/wg-easy-pr-validation.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ jobs:
242242
run: |
243243
BRANCH_NAME="${{ github.head_ref || github.ref_name }}"
244244
CHANNEL_NAME=$(echo "$BRANCH_NAME" | tr '[:upper:]' '[:lower:]')
245-
replicated customer create --name "$BRANCH_NAME" --channel "$CHANNEL_NAME"
245+
task customer-create CUSTOMER_NAME="$BRANCH_NAME" RELEASE_CHANNEL="$CHANNEL_NAME"
246246
timeout-minutes: 5
247247
env:
248248
REPLICATED_API_TOKEN: ${{ secrets.WG_EASY_REPLICATED_API_TOKEN }}
@@ -251,8 +251,8 @@ jobs:
251251
- name: Create cluster with branch name
252252
run: |
253253
BRANCH_NAME="${{ github.head_ref || github.ref_name }}"
254-
replicated cluster create --name "$BRANCH_NAME" --distribution embedded-cluster
255-
timeout-minutes: 10
254+
task cluster-create CLUSTER_NAME="$BRANCH_NAME"
255+
timeout-minutes: 15
256256
env:
257257
REPLICATED_API_TOKEN: ${{ secrets.WG_EASY_REPLICATED_API_TOKEN }}
258258
REPLICATED_APP: ${{ secrets.WG_EASY_REPLICATED_APP }}

0 commit comments

Comments
 (0)