-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.envrc
58 lines (48 loc) · 999 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /bin/bash
set -eo pipefail
dir="node_modules"
if [[ ! -e $dir ]]; then
yarn install
fi
if ! command -v yamllint &> /dev/null
then
echo "Install yaml-lint"
yarn add yaml-lint --dev
fi
if ! command -v hadolint &> /dev/null
then
echo "Install hadolint"
brew install hadolint
fi
if ! command -v shfmt &> /dev/null
then
echo "Install shfmt"
brew install shfmt
fi
if ! command -v ct &> /dev/null
then
echo "Install chart-testing"
brew install chart-testing
fi
if ! command -v gcloud &> /dev/null
then
echo "Install gcloud"
brew install --cask google-cloud-sdk
fi
if ! command -v tfenv &> /dev/null
then
echo "Install tfenv"
brew install tfenv
fi
if ! command -v kubeseal &> /dev/null
then
echo "Install kubeseal"
brew install kubeseal
fi
if ! command -v argocd &> /dev/null
then
echo "Install argocd"
brew install argocd
fi
export PROJECT_ID="gke-free-k8s"
gcloud container clusters get-credentials gke-free-k8s --zone europe-west1-c --project $PROJECT_ID