-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate action on native and nscloud runners.
- Loading branch information
Showing
2 changed files
with
5,011 additions
and
5,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,11 @@ permissions: | |
|
||
jobs: | ||
run_nscloud_action: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, nscloud-ubuntu-22.04-amd64-2x8] | ||
runs-on: ${{ matrix.os }} | ||
name: Deploy to an ephemeral cluster in Namespace Cloud | ||
steps: | ||
- name: Checkout | ||
|
@@ -23,25 +27,12 @@ jobs: | |
run: | | ||
kubectl rollout status -n demo-app --watch --timeout=90s statefulset/demo-redis-server | ||
run_nscloud_action_on_nscloud_runner: | ||
runs-on: nscloud-ubuntu-22.04-amd64-2x8 | ||
name: Deploy to an ephemeral cluster in Namespace Cloud on nscloud runner | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Namespace Cloud CLI | ||
uses: ./ # Uses an action in the root directory | ||
- name: Set up kubectl with an ephemeral cluster in Namespace Cloud | ||
uses: namespacelabs/[email protected] | ||
- name: Apply configurations | ||
run: | | ||
kubectl apply -f .github/workflows/testdata/kubernetes/demo.yaml | ||
- name: Wait until Redis is available | ||
run: | | ||
kubectl rollout status -n demo-app --watch --timeout=90s statefulset/demo-redis-server | ||
push_image: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, nscloud-ubuntu-22.04-amd64-2x8] | ||
runs-on: ${{ matrix.os }} | ||
name: Push an image to the Namespace Cloud registry | ||
steps: | ||
- name: Checkout | ||
|
@@ -58,7 +49,11 @@ jobs: | |
docker push ${{ steps.nscloud.outputs.registry-address }}/nscloud-alpine | ||
use_nsc_manually: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-22.04, nscloud-ubuntu-22.04-amd64-2x8] | ||
runs-on: ${{ matrix.os }} | ||
name: Create a Namespace Cloud cluster manually | ||
steps: | ||
- name: Checkout | ||
|
Oops, something went wrong.