-
Notifications
You must be signed in to change notification settings - Fork 7
81 lines (74 loc) · 3.05 KB
/
push-dev-environment.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
name: Build images from latest dev branch
on:
push:
branches:
- main
jobs:
publish:
name: build and deploy
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 images and push
run: |
make \
build-docker-images \
push-docker-images
env:
# webapp
PORT: 3000
NEXT_PUBLIC_TAG: ${{ github.ref }}
NEXT_PUBLIC_NAME: "edenia_boilerplate"
NEXT_PUBLIC_TITLE: "Fullstack Boilerplate"
NEXT_PUBLIC_LOGO: "https://raw.githubusercontent.com/edenia/.github/master/.github/workflows/images/edenia-logo.png"
NEXT_PUBLIC_FOOTER_LINKS: "[]"
NEXT_PUBLIC_NETWORK_CHAIN_INDEX: "Jungle4"
NEXT_PUBLIC_CUSTOM_NETWORK_CHAIN: "{}"
NEXT_PUBLIC_HASURA_URL: "https://graphql-boilerplate.edenia.cloud/v1/graphql"
- name: Build kubernetes files
id: build_kubernetes_files
run: |
make \
build-kubernetes
env:
# general
NAMESPACE: boilerplate
INGRESS_HOST: boilerplate.edenia.cloud
INGRESS_GRAPHQL_HOST: graphql-boilerplate.edenia.cloud
# Postgres
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
POSTGRES_DATA: ${{ secrets.POSTGRES_DATA }}
# hapi
HAPI_SERVER_PORT: 9090
HAPI_SERVER_ADDRESS: 0.0.0.0
HAPI_NETWORK_CHAIN_INDEX: "Jungle4" # 'EOS' | 'FIO' | 'FIOTestnet' | 'Jungle4' | 'KylinTestnet' | 'Libre' | 'LibreTestnet' | 'Proton' | 'ProtonTestnet' | 'Telos' | 'TelosTestnet' | 'WAX' | 'WAXTestnet' | 'UX';
HAPI_CUSTOM_NETWORK_CHAIN: "{}"
HAPI_NETWORK_BASE_ACCOUNT: ${{ secrets.HAPI_NETWORK_BASE_ACCOUNT }}
HAPI_NETWORK_BASE_PASSWORD: ${{ secrets.HAPI_NETWORK_BASE_PASSWORD }}
HAPI_NETWORK_WALLET_URL: ${{ secrets.HAPI_NETWORK_WALLET }}
HAPI_HASURA_URL: ${{ secrets.HAPI_HASURA_URL }}
HAPI_HASURA_ADMIN_SECRET: ${{ secrets.HAPI_HASURA_ADMIN_SECRET }}
# hasura
HASURA_GRAPHQL_ENABLE_CONSOLE: true
HASURA_GRAPHQL_DATABASE_URL: ${{ secrets.HASURA_GRAPHQL_DATABASE_URL }}
HASURA_GRAPHQL_ADMIN_SECRET: ${{ secrets.HASURA_GRAPHQL_ADMIN_SECRET }}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: ${{ secrets.HASURA_GRAPHQL_UNAUTHORIZED_ROLE }}
HASURA_GRAPHQL_ACTION_BASE_URL: ${{ secrets.HASURA_GRAPHQL_ACTION_BASE_URL }}
- name: Deploy kubernetes files
uses: steebchen/[email protected]
env:
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
NAMESPACE: boilerplate
K8S_BUILD_DIR: build_k8s
with:
args: version && make deploy-kubernetes