-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy Staging into Production (#506)
* update ual dependencies (#503) * fix(UAL): update ual dependencies * fix(UAL): add logic to bp file * Update project dependencies (#504) * fix(FE): update dependencies * fix(FE): remove eslint config options * configure a storageclass for the eos rate. refs #509 (#510) * Remove HoC (#513) * fix(FE): update dependencies * fix(FE): remove HoCs * fix(FE): use Hook instead HoC * fix(FE): fix multiple callback to get_account UAL * fix(FE): clear eslintrc file * fix(FE): code review * Create versioning and release workflow (#512) * create releasing and versioning of eos-rate. refs #511 * fix development branch in release documentation. refs #511 * add link to relase documentation in the readme. refs #511 Co-authored-by: Teto Gomez <[email protected]> Co-authored-by: Andres Gomez <[email protected]>
- Loading branch information
1 parent
b333e51
commit 20ed4fe
Showing
108 changed files
with
7,075 additions
and
6,984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Creating a new release | ||
|
||
These are the steps: | ||
```bash | ||
# Set and replace the version you need to tag and deploy | ||
VERSION='v0.1.x' | ||
|
||
# Checked out into develop branch | ||
git checkout staging | ||
|
||
# Fetched all remote updates | ||
git remote update | ||
|
||
# Update local develop branch with remote copy | ||
git pull origin staging | ||
|
||
# Created a release branch that tracks origin/develop | ||
git checkout -b release/$VERSION origin/staging | ||
|
||
# Pushed release branch to remote repository | ||
git push origin release/$VERSION | ||
|
||
# Opened a "pull request" in GitHub for team to verify the release | ||
|
||
# Checkout into master branch | ||
git checkout master | ||
|
||
# Updated local master branch with remote copy | ||
git pull origin master | ||
|
||
# Merged release branch into master branch | ||
git merge release/$VERSION | ||
|
||
# Tagged the release point by creating a new tag | ||
git tag -a $VERSION -m "Create release tag $VERSION" | ||
|
||
# Pushed master branch to remote repository | ||
git push origin master | ||
|
||
# Pushed the tags to remote repository | ||
git push origin --tags | ||
|
||
# Checkout into develop branch | ||
git checkout staging | ||
|
||
# Merged release branch into develop branch | ||
git merge release/$VERSION | ||
|
||
# Pushed develop branch to remote repository | ||
git push origin staging | ||
|
||
# Removed release branch from the local repository | ||
git branch -D release/$VERSION | ||
|
||
# Removed release branch from the remote repository | ||
git push origin :release/$VERSION | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: eosrate-storage | ||
labels: | ||
version: ${VERSION} | ||
parameters: | ||
fromBackup: "" | ||
numberOfReplicas: "1" | ||
staleReplicaTimeout: "2880" | ||
provisioner: driver.longhorn.io | ||
reclaimPolicy: Retain | ||
volumeBindingMode: WaitForFirstConsumer | ||
allowVolumeExpansion: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
REACT_APP_GRAPHQL_HTTP_URL=https://graphql-jungle.eosrate.io/v1alpha1/graphql | ||
REACT_APP_API_URL=https://jungle.eosio.cr | ||
REACT_APP_GRAPHQL_HTTP_URL=http://localhost:8088/v1alpha1/graphql | ||
REACT_APP_GRAPHQL_WS_URL=ws://localhost:8088/v1alpha1/graphql | ||
REACT_APP_EOS_API_URL=https://jungle.eosio.cr | ||
REACT_APP_GRAPHQL_WS_URL=wss://graphql-jungle.eosrate.io/v1alpha1/graphql | ||
REACT_APP_EOS_API_URL=https://jungle.eosio.cr | ||
REACT_APP_EOS_API_HOST=jungle.eosio.cr | ||
REACT_APP_EOS_API_PORT=443 | ||
REACT_APP_EOS_API_PROTOCOL=https | ||
REACT_APP_EOS_CHAIN_ID=2a02a0053e5a8cf73a56ba0fda11e4d92e0238a4a2aa74fccf46d5a910746840 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"standard", | ||
"standard-react" | ||
"standard-react", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"node": true | ||
}, | ||
"rules": { | ||
"multiline-ternary": "off", | ||
"space-before-function-paren": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,33 @@ | ||
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import { connect } from 'react-redux' | ||
import { useSelector } from 'react-redux' | ||
import { Router } from '@reach/router' | ||
|
||
import Spinner from 'components/spinner' | ||
import Layout from 'components/layout' | ||
import NotFound from 'routes/not-found' | ||
import routes from 'routes' | ||
|
||
const App = ({ isContentLoading, ual }) => ( | ||
<> | ||
<Spinner isLoading={isContentLoading} /> | ||
<Layout ual={ual}> | ||
<Router> | ||
{routes.map(({ path, Component }) => ( | ||
<Component key={`path-${path}`} path={path} ual={ual} /> | ||
))} | ||
<NotFound default /> | ||
</Router> | ||
</Layout> | ||
</> | ||
) | ||
const App = ({ ual }) => { | ||
const { isContentLoading } = useSelector((state) => state.isLoading) | ||
|
||
App.propTypes = { | ||
isContentLoading: PropTypes.bool, | ||
ual: PropTypes.object | ||
return ( | ||
<> | ||
<Spinner isLoading={isContentLoading} /> | ||
<Layout ual={ual}> | ||
<Router> | ||
{(routes || []).map(({ path, Component }) => ( | ||
<Component key={`path-${path}`} path={path} ual={ual} /> | ||
))} | ||
<NotFound default /> | ||
</Router> | ||
</Layout> | ||
</> | ||
) | ||
} | ||
|
||
App.defaultProps = { | ||
isContentLoading: false | ||
App.propTypes = { | ||
ual: PropTypes.object | ||
} | ||
|
||
const mapStateToProps = state => ({ | ||
isContentLoading: state.isLoading.isContentLoading | ||
}) | ||
|
||
export default connect(mapStateToProps, null)(App) | ||
export default App |
Oops, something went wrong.