generated from edenia/website-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (74 loc) · 2.88 KB
/
publish-dev.yaml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Publish release to development environment
on:
workflow_dispatch:
push:
branches:
- dev
jobs:
publish:
runs-on: ubuntu-latest
environment: development
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build new image and push
run: |
make \
build-docker \
push-image
env:
LATEST_TAG: latest
IMAGE_NAME: eden-proxy-webapp-dev
NEXT_PUBLIC_UAL_APP_NAME: 'edensmartprx'
NEXT_PUBLIC_UAL_API_PROTOCOL: 'https'
NEXT_PUBLIC_UAL_API_HOST: ${{ secrets.DEV_NEXT_PUBLIC_UAL_API_HOST }}
NEXT_PUBLIC_UAL_API_PORT: '443'
NEXT_PUBLIC_UAL_CHAIN_ID: ${{ secrets.DEV_NEXT_PUBLIC_UAL_CHAIN_ID }}
NEXT_PUBLIC_AA_API_HOST: ${{ secrets.DEV_NEXT_PUBLIC_AA_API_HOST }}
NEXT_PUBLIC_GENESISEDEN_CONTRACT: genesis.eden
NEXT_PUBLIC_EDENSMARTPROXY_CONTRACT: edensmartprx
NEXT_PUBLIC_MYVOTEEOSDAO_CONTRACT: myvoteeosdao
NEXT_PUBLIC_EDEN_API_HOST: https://eden-api-dev.edenia.cloud/v1/graphql
NEXT_PUBLIC_EDEN_MEMBER_URL: https://eden.edenia.cloud/members/
NEXT_PUBLIC_EDEN_BLOCK_EXPLORER_URL: https://local.bloks.io
NEXT_PUBLIC_PRODUCERS_INFO_API_URL: https://graphql-jungle.antelope.tools/api/rest/get-producers-info
EOSRATE_GET_STATS_URL: ${{ secrets.DEV_EOSRATE_GET_STATS_URL }}
EOSRATE_GET_STATS_USER: ${{ secrets.DEV_EOSRATE_GET_STATS_USER }}
EOSRATE_GET_STATS_PASSWORD: ${{ secrets.DEV_EOSRATE_GET_STATS_PASSWORD }}
- name: Build voter image and push
run: |
make \
build-docker-voter \
push-image-voter
env:
IMAGE_NAME_VOTER: proxy-voter-dev
- name: Build kubernetes files
id: build_kubernetes_files
run: |
make \
build-kubernetes
env:
LATEST_TAG: latest
IMAGE_NAME: eden-proxy-webapp-dev
IMAGE_NAME_VOTER: proxy-voter-dev
ENVIRONMENT: dev
EOS_API_ENDPOINT: 'https://jungle.edenia.cloud'
EOS_API_CHAIN_ID: '73e4385a2708e6d7048834fbc1079f2fabb17b3c125b146af438971e90716c4d'
EOS_VOTER_ACCOUNT: 'edensmartprx'
EOS_VOTER_PERMISSION: 'proxyvote'
EOS_VOTER_PRIVATE_KEY: ${{ secrets.DEV_EOS_VOTER_PRIVATE_KEY }}
EOS_PROXY_ACCOUNT: 'edensmartprx'
- name: Setup and deploy kubernetes environment
uses: steebchen/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.DEV_KUBE_CONFIG_DATA }}
NAMESPACE: edenproxy
K8S_BUILD_DIR: build_k8s
with:
args: version && make deploy-kubernetes