Skip to content

Commit

Permalink
Validate action on native and nscloud runners.
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g committed Jun 16, 2023
1 parent 005ae62 commit a9ebd13
Show file tree
Hide file tree
Showing 2 changed files with 5,011 additions and 5,016 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Loading

0 comments on commit a9ebd13

Please sign in to comment.