-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (48 loc) · 1.46 KB
/
deploy-ganache-node.yml
File metadata and controls
51 lines (48 loc) · 1.46 KB
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
name: Deploy ganache node
on:
workflow_dispatch:
env:
REGISTRY: trufflesuite/ganache
IMAGE_TAG: latest
SERVICE_NAME: ${{ secrets.SERVICE_NAME_GANACHE }}
CLUSTER: ${{ secrets.CLUSTER }}
NAMESPACE: ${{ secrets.NAMESPACE }}
HELM_REPOSITORY: "ethpandaops/ethereum-helm-charts"
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.7.0
- name: 'Clone Helm repository'
uses: actions/checkout@v3
with:
repository: ${{ env.HELM_REPOSITORY }}
ref: 'master'
- name: Set Kubernetes Context
uses: azure/k8s-set-context@v3
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
context: ${{ env.CLUSTER }}
- name: 'Create env file'
run: |
echo "${{ secrets.EXTRAENV_GANACHE }}" > extraEnv.yml
- name: 'Deploy node'
run: |
helm upgrade -i $SERVICE_NAME \
-n $NAMESPACE \
--set fullnameOverride=$SERVICE_NAME \
--set service.enabled=true \
--set service.port=8545 \
--set service.targetport=8545 \
--set image.repository=$REGISTRY \
--set image.tag=$IMAGE_TAG \
-f extraEnv.yml \
./charts/ganache/