Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Nowak committed Nov 26, 2023
1 parent c553ab2 commit ad16ce2
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions .github/workflows/development_dynamic_enviroment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,23 @@ on:
branches: ["development"]

jobs:
checkout:
build:
runs-on: arc-runner-set

steps:
- uses: actions/checkout@v4

install:
runs-on: arc-runner-set
needs: ["checkout"]

steps:
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci

fmt:
runs-on: arc-runner-set
needs: ["install"]

steps:
- run: npm run fmt.check

lint:
runs-on: arc-runner-set
needs: ["install"]

steps:
- run: npm run lint

build:
runs-on: arc-runner-set
needs: ["install", "fmt", "lint"]

steps:
- run: npm run build

kubeconfig:
runs-on: arc-runner-set
needs: ["build"]

steps:
- name: Create kubeconfig
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
run: |
mkdir -p $GITHUB_WORKSPACE/.kube
echo "$KUBE_CONFIG" | base64 --decode > $GITHUB_WORKSPACE/.kube/config
deploy:
runs-on: arc-runner-set
needs: ["kubeconfig"]

steps:
- name: Deploy to kubernetes
run: skaffold run --kubeconfig "$GITHUB_WORKSPACE/.kube/config" --filename "$GITHUB_WORKSPACE/dev-skaffold.yaml" --default-repo registry.internal.visoft.solutions

0 comments on commit ad16ce2

Please sign in to comment.