Skip to content

Commit c76b0ab

Browse files
authored
update cluster creation action in regression-test.yaml (#1932)
1 parent 5aa11c0 commit c76b0ab

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/regression-test.yaml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,10 @@ jobs:
2929
run: mkdir -p test/output
3030

3131
- name: Create k3s cluster
32-
id: create-cluster
33-
uses: replicatedhq/compatibility-actions/create-cluster@v1
32+
id: k3s
33+
uses: replicatedhq/action-k3s@main
3434
with:
35-
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
36-
kubernetes-distribution: k3s
37-
cluster-name: regression-${{ github.run_id }}-${{ github.run_attempt }}
38-
ttl: 25m
39-
timeout-minutes: 5
40-
41-
- name: Configure kubeconfig
42-
run: |
43-
echo "${{ steps.create-cluster.outputs.cluster-kubeconfig }}" > $GITHUB_WORKSPACE/kubeconfig.yaml
44-
echo "KUBECONFIG=$GITHUB_WORKSPACE/kubeconfig.yaml" >> $GITHUB_ENV
35+
version: v1.31.2-k3s1
4536

4637
- name: Verify cluster access
4738
run: kubectl get nodes -o wide
@@ -284,10 +275,4 @@ jobs:
284275
git push
285276
286277
# 6. CLEANUP
287-
- name: Remove cluster
288-
if: always()
289-
uses: replicatedhq/compatibility-actions/remove-cluster@v1
290-
continue-on-error: true
291-
with:
292-
api-token: ${{ secrets.REPLICATED_API_TOKEN }}
293-
cluster-id: ${{ steps.create-cluster.outputs.cluster-id }}
278+
# Note: k3s cluster cleanup is handled automatically by the action

0 commit comments

Comments
 (0)