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 7a3e192 commit 7a9b1ce
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/development_dynamic_enviroment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,31 @@ jobs:
runner: [arc-runner-set]

runs-on: ${{ matrix.runner }}
container: docker.io/ubuntu:18.04
container:
image: docker.io/node:lts-slim
volumes:
- /var/run/docker.sock:/var/run/docker.sock
options: --previlaged

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
- 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 docker
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh && chmod 666 /var/run/docker.sock
# - 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: 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

0 comments on commit 7a9b1ce

Please sign in to comment.