Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #11

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 22 additions & 26 deletions .github/workflows/development_dynamic_enviroment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,28 @@ on:

jobs:
build:
strategy:
matrix:
runner: [arc-runner-set]

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

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 && 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
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: npm run fmt.check
- run: npm run lint
- run: npm run build
- name: Create kubeconfig
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
run: |
mkdir -p $GITHUB_WORKSPACE/.kube
echo "$KUBE_CONFIG" | base64 --decode > $GITHUB_WORKSPACE/.kube/config
- name: Run Skaffold pipeline as action
uses: hiberbee/[email protected]
with:
skaffold-version: 2.9.0
command: run
kubeconfig: ${{ github.workspace }}/.kube/config
filename: ${{ github.workspace }}/dev-skaffold.yaml
repository: registry.internal.visoft.solutions
Loading