Skip to content

install prereq

install prereq #31

name: Development Dynamic Enviroment
on:
push:
branches: ["development"]
pull_request:
branches: ["development"]
jobs:
build:
strategy:
matrix:
runner: [arc-runner-set]
runs-on: ${{ matrix.runner }}
container:
image: docker.io/node:lts-slim
options: --privileged
steps:
- uses: actions/checkout@v4
- name: install
run: npm ci
- name: fmt
run: npm run fmt.check
- name: lint
run: npm run lint
- name: build
run: npm run build
- name: update
run: apt update && apt upgrade -y && apt install -y curl
- name: kubeconfig
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
run: |
mkdir -p $GITHUB_WORKSPACE/.kube
echo "$KUBE_CONFIG" | base64 --decode > $GITHUB_WORKSPACE/.kube/config
- name: install skaffold
run: curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 && install skaffold /usr/local/bin/
- name: deploy
run: skaffold run --kubeconfig "$GITHUB_WORKSPACE/.kube/config" --filename "$GITHUB_WORKSPACE/dev-skaffold.yaml" --default-repo registry.internal.visoft.solutions