Skip to content

Commit

Permalink
install prereq
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Nowak committed Nov 26, 2023
1 parent 1d571d8 commit 15cf6cc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 48 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/development_dynamic_enviroment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
runner: [arc-runner-set]

runs-on: ${{ matrix.runner }}
container:
image: docker.io/node:lts-slim
options: --privileged
container: docker.io/node:lts-slim

steps:
- uses: actions/checkout@v4
Expand All @@ -27,15 +25,15 @@ jobs:
run: npm run lint
- name: build
run: npm run build
- name: update
run: apt update && apt upgrade -y && apt install -y curl && curl -sSL https://get.docker.com/ | sh && dockerd
- 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
# - name: update
# run: apt update && apt upgrade -y && apt install -y curl && curl -sSL https://get.docker.com/ | sh && dockerd
# - 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
48 changes: 15 additions & 33 deletions .github/workflows/master_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,21 @@ on:
branches: ["master"]

jobs:
checkout:
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"]
strategy:
matrix:
runner: [arc-runner-set]

runs-on: ${{ matrix.runner }}
container: docker.io/node:lts-slim

steps:
- run: npm run build
- 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

0 comments on commit 15cf6cc

Please sign in to comment.