Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): helm deployment #129

Merged
merged 39 commits into from
Apr 21, 2022
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
636bcae
test deployment
guyvelleman Apr 4, 2022
801b56f
Test workflow
guyvelleman Apr 4, 2022
e66930b
Install s3 repo
guyvelleman Apr 4, 2022
882ad01
Install s3 repo
guyvelleman Apr 4, 2022
cf5e3fd
Install s3 repo
guyvelleman Apr 4, 2022
f3a6165
Add aws auth
guyvelleman Apr 4, 2022
5fd73b6
Add auth to aws
guyvelleman Apr 4, 2022
fa43066
Delete Aws arn
guyvelleman Apr 5, 2022
cf210c9
Update aws access and secret keys
guyvelleman Apr 5, 2022
8f93cca
Add AWS_SECRET_ACCESS_KEY to gcp workflow
guyvelleman Apr 5, 2022
896a577
Delete testing
guyvelleman Apr 5, 2022
d1cf1e3
Add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY secrets
guyvelleman Apr 5, 2022
2192ffe
Merge branch 'dev' into guy/master/dev_helm_deployment
dan-ziv Apr 6, 2022
10f6210
Merge branch 'dev' into guy/master/dev_helm_deployment
dan-ziv Apr 6, 2022
b007f3e
fix(Terms): add notes (#144)
CarmitKl Apr 11, 2022
1e0a94b
prerelease: v1.2.0-dev.2
semantic-release-bot Apr 11, 2022
1c74b46
Merge branch 'dev' into guy/master/dev_helm_deployment
dan-ziv Apr 12, 2022
8867301
Add stage
guyvelleman Apr 12, 2022
67f50f7
fix(Faq): update question 8 (#149)
CarmitKl Apr 12, 2022
4e604bd
ci: add nginx configuration file for app routing (#150)
guyvelleman Apr 12, 2022
125061d
prerelease: v1.2.0-dev.3
semantic-release-bot Apr 12, 2022
ca45b1e
Merge branch 'guy/master/dev_helm_deployment' of github.com:starkware…
guyvelleman Apr 12, 2022
5dc71e5
Split deploy and push workflows
guyvelleman Apr 12, 2022
9581749
Delete aws secrets
guyvelleman Apr 12, 2022
3ffdbf5
Change workflow name
guyvelleman Apr 12, 2022
36d0b97
Add env vars
guyvelleman Apr 12, 2022
6ca6802
Delete test file
guyvelleman Apr 13, 2022
017ce0a
fix: unsupported chain id does not showing (#151)
dan-ziv Apr 13, 2022
0407743
prerelease: v1.2.0-dev.4
semantic-release-bot Apr 13, 2022
74e6861
fix: app crashed when trying to connect while ArgentX wasn't installed
CarmitKl Apr 13, 2022
c86cc43
prerelease: v1.2.0-dev.5
semantic-release-bot Apr 13, 2022
1cc2b8c
release: v1.2.0
semantic-release-bot Apr 13, 2022
cb764c1
Merge branch 'dev' into guy/master/dev_helm_deployment
dan-ziv Apr 13, 2022
9cfe18e
Merge branch 'dev' into guy/master/dev_helm_deployment
dan-ziv Apr 14, 2022
508dcd1
Merge branch 'dev' of github.com:starkware-libs/starknet-bridge into …
dan-ziv Apr 14, 2022
fa54c98
change branches
dan-ziv Apr 14, 2022
452bd2a
Delete Terms.strings.js
dan-ziv Apr 18, 2022
36d2351
Merge branch 'dev' of github.com:starkware-libs/starknet-bridge into …
dan-ziv Apr 21, 2022
680830d
Update Terms.module.scss
dan-ziv Apr 21, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/gcr_push_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
required: true

jobs:
deploy:
build:
name: Build tag and push docker images to GCR.
runs-on: ubuntu-latest
steps:
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/helm_upgrade_workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Push docker image to GCR reusable workflow

on:
workflow_call:
inputs:
app_name:
required: true
type: string
namespace_name:
required: true
type: string
values_file:
required: true
type: string
env_file:
required: true
type: string
secrets:
gcp_token:
required: true
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
jobs:
deploy:
name: Upgrade helm chart
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup GKE cluster
uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
with:
cluster_name: web-devs
location: us-central1
credentials: ${{ secrets.gcp_token }}
- name: Helm tool installer
uses: Azure/setup-helm@v2.0
- name: Download starkware-third-party repo from S3.
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
run: |
helm plugin install https://starkware-third-party.s3.us-east-2.amazonaws.com/k8s/helm-s3/helm-s3-v0.9.2.tar.gz
helm repo add starkware s3://starkware-third-party/helm-repo/charts
helm repo update
- name: Upgrade using helm upgrade command.
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-2
run: |
helm upgrade ${{ inputs.app_name }} starkware/webapp-general-helm \
--namespace=${{ inputs.namespace_name }} \
--values ${{ inputs.values_file}} \
--set-file configMap.frontend.envs=${{ inputs.env_file }} \
--set frontend.image.tag=${{ github.ref_name }}
2 changes: 2 additions & 0 deletions .github/workflows/push_backend_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ jobs:
dockerfile: Dockerfile.backend
secrets:
gcp_token: ${{ secrets.STARKGATE_SA }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
29 changes: 29 additions & 0 deletions .github/workflows/push_frontend_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,32 @@ jobs:
dockerfile: Dockerfile.frontend
secrets:
gcp_token: ${{ secrets.STARKGATE_SA }}

deploy_devnet:
if: github.event.base_ref == 'refs/heads/dev'
needs: [push-frontend-image]
uses: ./.github/workflows/helm_upgrade_workflow.yml
with:
app_name: starkgate
namespace_name: starkgate-devnet
values_file: deployment/development.yml
env_file: .env.testing
secrets:
gcp_token: ${{ secrets.STARKGATE_SA }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}


deploy_testnet:
if: github.event.base_ref == 'refs/heads/master'
needs: [push-frontend-image]
uses: ./.github/workflows/helm_upgrade_workflow.yml
with:
app_name: starkgate
namespace_name: starkgate-goerli
values_file: deployment/testing.yml
env_file: .env.testing
secrets:
gcp_token: ${{ secrets.STARKGATE_SA }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1 change: 1 addition & 0 deletions src/config/strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const strings = {
terms: {
title_txt: 'Terms of Service',
last_revised_txt: 'Last Revised: April 4, 2022',
notes_title_txt: 'Notes',
accept_btn_txt: 'I Accept'
}
},
Expand Down
21 changes: 20 additions & 1 deletion src/routes/Terms/Terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {useColors, useConfig} from '../../hooks';
import {useTerms} from '../../providers/AppProvider';
import {useL1Wallet, useL2Wallet} from '../../providers/WalletsProvider';
import styles from './Terms.module.scss';
import {ACCEPT_BTN_TXT, LAST_REVISED_TXT, TITLE_TXT} from './Terms.strings';
import {ACCEPT_BTN_TXT, LAST_REVISED_TXT, NOTES_TITLE_TXT, TITLE_TXT} from './Terms.strings';

const STARKWARE_SITE_URL = 'https://starkware.co/';
const STARKNET_DOCS_URL = 'https://starknet.io/documentation/';
Expand Down Expand Up @@ -529,6 +529,25 @@ export const Terms = () => {
</li>
</ol>
</div>
<div className={styles.notes}>
<h3>{NOTES_TITLE_TXT}</h3>
<hr />
<ol>
<li>
As the StarkNet becomes decentralized we may consider removing the Bridge from these
terms and taking the position that it is completely decentralized
</li>
<li>
TBD whether we could add a sentence that Starkware also cannot control or direct the
operation of the part of the Bridge that sits on the StarkNet in the pre-Universe
phase.
</li>
<li>
To discuss the extent to which we can make this statement, or can modify it for
accuracy.
</li>
</ol>
</div>
</div>
{!isAcceptTerms && (
<div ref={acceptButtonRef} className={styles.acceptButton}>
Expand Down
21 changes: 21 additions & 0 deletions src/routes/Terms/Terms.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,27 @@
font-size: 24px;
font-weight: bold;
}

.notes {
h3 {
margin-bottom: 0;
line-height: 1;
margin-top: 50px;
}

hr {
border-color: $--color-white;
}

li {
margin-bottom: 4px;

&::marker {
font-size: 16px;
font-weight: normal;
}
}
}
}

.acceptButton {
Expand Down
7 changes: 0 additions & 7 deletions src/routes/Terms/Terms.strings.js

This file was deleted.