Skip to content

Commit

Permalink
migrate website layout :/
Browse files Browse the repository at this point in the history
  • Loading branch information
hard-nettt committed May 19, 2023
1 parent 274a2ca commit 2287fb2
Show file tree
Hide file tree
Showing 358 changed files with 13,867 additions and 38,395 deletions.
6 changes: 0 additions & 6 deletions .dockerignore

This file was deleted.

2 changes: 0 additions & 2 deletions .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build/
87 changes: 83 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,86 @@
{
"extends": "next",
"env": {
"browser": true,
"es6": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module",
"allowImportExportEverywhere": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
"indent": [
2,
4
],
"arrow-parens": [
2,
"always"
],
"semi": [
2,
"always"
],
"comma-dangle": [
2,
"always-multiline"
],
"jsx-quotes": [
2
],
"dot-notation": [
2,
{
"allowPattern": "^[0-9A-Za-z]+(_[0-9A-Za-z]+)+$"
}
],
"curly": [
2,
"all"
],
"react/jsx-first-prop-new-line": [
2,
"multiline-multiprop"
],
"react/jsx-indent-props": [
2,
"first"
],
"react/sort-prop-types": [
2,
{
"callbacksLast": true,
"requiredFirst": true
}
],
"react/jsx-sort-props": [
2,
{
"callbacksLast": true,
"reservedFirst": true,
"shorthandFirst": true
}
]
}
}
}
19 changes: 19 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'publish'

on:
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: build
run: |
echo "${{ secrets.GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.GHCR_USER }}" --password-stdin
docker build -f Dockerfile . --tag ghcr.io/cosmoscontracts/website:${GITHUB_REF#refs/tags/}
docker tag ghcr.io/cosmoscontracts/website:${GITHUB_REF#refs/tags/} ghcr.io/cosmoscontracts/website:latest
docker push ghcr.io/cosmoscontracts/website:${GITHUB_REF#refs/tags/}
docker push ghcr.io/cosmoscontracts/website:latest
39 changes: 14 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,30 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
node_modules
www.tar

.idea
# testing
/coverage

# next.js
/.next/
/out/

# production
/build
# Gatbsy production
/public

# misc
.DS_Store
*.pem
.env.local
.env.development.local
.env.test.local
.env.production.local

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

.next
# Gatsby
.cache

# contentlayer [blogs]
.contentlayer
#yarn
yarn.lock
package-lock.json
59 changes: 59 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
image: node:14.5.0-alpine

stages:
- test
- deploy

lint_test:
stage: test
only:
- development
- staging
- master
- merge_requests
script:
- apk add g++ make python
- yarn
- $(pwd)/node_modules/.bin/eslint $(pwd)
cache:
paths:
- node_modules/

dev_deploy:
stage: deploy
only:
- development
script:
- apk add openssh-client
- eval $(ssh-agent -s)
- echo "${DEV_SSH_KEY}" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- ssh -o "StrictHostKeyChecking=no" ${DEV_SSH_USER}@${DEV_SSH_SERVER} "mkdir -p /tmp/terpnetwork/website"
- scp -o "StrictHostKeyChecking=no" $(pwd)/scripts/dev_deploy.sh ${DEV_SSH_USER}@${DEV_SSH_SERVER}:/tmp/terpnetwork/website/dev_deploy.sh
- ssh -o "StrictHostKeyChecking=no" ${DEV_SSH_USER}@${DEV_SSH_SERVER} "bash /tmp/terpnetwork/website/dev_deploy.sh"

staging_deploy:
stage: deploy
only:
- staging
script:
- apk add openssh-client
- eval $(ssh-agent -s)
- echo "${STAGING_SSH_KEY}" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- ssh -o "StrictHostKeyChecking=no" ${STAGING_SSH_USER}@${STAGING_SSH_SERVER} "mkdir -p /tmp/terpnetwork/website"
- scp -o "StrictHostKeyChecking=no" $(pwd)/scripts/staging_deploy.sh ${STAGING_SSH_USER}@${STAGING_SSH_SERVER}:/tmp/terpnetwork/website/staging_deploy.sh
- ssh -o "StrictHostKeyChecking=no" ${STAGING_SSH_USER}@${STAGING_SSH_SERVER} "bash /tmp/terpnetwork/website/staging_deploy.sh"

prod_deploy:
stage: deploy
only:
- master
script:
- apk add openssh-client
- eval $(ssh-agent -s)
- echo "${PROD_SSH_KEY}" | tr -d '\r' | ssh-add - > /dev/null
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
- ssh -o "StrictHostKeyChecking=no" ${PROD_SSH_USER}@${PROD_SSH_SERVER} "mkdir -p /tmp/terpnetwork/website"
- scp -o "StrictHostKeyChecking=no" $(pwd)/scripts/prod_deploy.sh ${PROD_SSH_USER}@${PROD_SSH_SERVER}:/tmp/terpnetwork/website/prod_deploy.sh
- ssh -o "StrictHostKeyChecking=no" ${PROD_SSH_USER}@${PROD_SSH_SERVER} "bash /tmp/terpnetwork/website/prod_deploy.sh"
11 changes: 0 additions & 11 deletions .gitpod.yml

This file was deleted.

Loading

0 comments on commit 2287fb2

Please sign in to comment.