Skip to content

Commit

Permalink
Merge pull request #1144 from aeternity/release/v0.5.4
Browse files Browse the repository at this point in the history
Release 0.5.4
  • Loading branch information
imollov authored Jul 26, 2021
2 parents e347f17 + 715c44e commit 11d1f74
Show file tree
Hide file tree
Showing 140 changed files with 9,649 additions and 9,293 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/dist
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[*.{js,jsx,ts,tsx,vue,scss,svg}]
[*.{js,jsx,ts,tsx,vue,scss,svg,html}]
indent_style = space
indent_size = 2
end_of_line = lf
Expand Down
9 changes: 6 additions & 3 deletions .env.tnet
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
VUE_APP_BACKEND_URL=https://test-tipping.aeternity.art
VUE_APP_BACKEND_URL=https://testnet.superhero.aeternity.art
VUE_APP_NODE_URL=https://testnet.aeternity.io
VUE_APP_MIDDLEWARE_URL=https://testnet.aeternity.io/mdw
VUE_APP_EXPLORER_URL=https://testnet.aeternal.io

VUE_APP_CONTRACT_V1_ADDRESS=ct_2Cvbf3NYZ5DLoaNYAU71t67DdXLHeSXhodkSNifhgd7Xsw28Xd
VUE_APP_CONTRACT_V2_ADDRESS=ct_2ZEoCKcqXkbz2uahRrsWeaPooZs9SdCv6pmC4kc55rD4MhqYSu
VUE_APP_CONTRACT_V2_ADDRESS=ct_2bvoxQ6cwwzoFASuddUxzsYVBZUet9KGHRAp7i25xsMXEWvSvx
VUE_APP_CONTRACT_V3_ADDRESS=ct_WscpdLQf6ZZxoVqrsEwUwmuAEdzEkJii5W5TzG84rVgHeK6BW
VUE_APP_WORD_REGISTRY_ADDRESS=ct_2sHzycCWkiyfZkCMoprn3Q7U8SQh3FYXp6iB1RAFVJy1pNWZAY

VUE_APP_WORD_REGISTRY_ADDRESS=ct_2vTMtHgJTxTpsQ8Tm3o6DmfDkhc3vM4DefV845Yp9FSDuS6YWB
VUE_APP_BONDING_CURVE_18_DECIMALS_ADDRESS=ct_2e1ZjvVXVi5f2ZiTqiFgs29oN1r1dhhdv2irvnnkvkoGZBgMPf
VUE_APP_WORDBAZAAR_ENABLED=true
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
'vue/v-on-function-call': 'error',
'vue-i18n/no-dynamic-keys': 'error',
'vue-i18n/no-unused-keys': 'error',
'vue-i18n/no-raw-text': 'error',
'vue-i18n/no-raw-text': 'off',
},
overrides: [
{
Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/ssr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: SSR deploy
on: [push, pull_request]
jobs:
deploy:
if: github.event_name == 'push'
runs-on: ubuntu-latest
env:
TARGET: ${{ format('/home/{0}/superhero-ui', secrets.SSR_STAGE_USER) }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
- run: npm run ssr:build

- name: Deploy to stage
uses: easingthemes/ssh-deploy@v2.1.5
env:
SSH_PRIVATE_KEY: ${{ secrets.SSR_STAGE_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.SSR_STAGE_HOST }}
REMOTE_USER: ${{ secrets.SSR_STAGE_USER }}
SOURCE: .
TARGET: ${{ env.TARGET }}
EXCLUDE: '/.git/, /node_modules/'

- name: Execute SSH commmands on remote server
uses: JimCronqvist/action-ssh@master
env:
NODE_ENV: production
HOME: /home/${{ secrets.SSR_STAGE_USER }}
NVM_DIR: /home/${{ secrets.SSR_STAGE_USER }}/.nvm
TARGET: ${{ env.TARGET }}
with:
hosts: '${{ secrets.SSR_STAGE_USER }}@${{ secrets.SSR_STAGE_HOST }}'
privateKey: ${{ secrets.SSR_STAGE_PRIVATE_KEY }}
debug: true
command: |
source ${{ env.NVM_DIR }}/nvm.sh || exit 1
cd ${{ env.TARGET }} || exit 1
nvm install 14 --latest-npm --no-progress --default || exit 1
npm ci || exit 1
killall node
setsid nohup npm run ssr:start </dev/null &2>log.log &
disown
comment:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: unsplash/comment-on-pr@85a56be792d927ac4bfa2f4326607d38e80e6e60
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOST: ${{ secrets.SSR_STAGE_HOST }}
with:
msg: SSR will be deployed to [${{ env.HOST }}](https://${{ env.HOST }}), [bundle report](https://${{ env.HOST }}/report.html)
check_for_duplicate_msg: true
28 changes: 28 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM node:14 as builder

RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY package*.json /home/node/app/
RUN chown -R node:node /home/node/

USER node

RUN npm ci
COPY --chown=node:node . /home/node/app
ENV NODE_ENV=production
RUN npm run ssr:build


FROM node:14-alpine

ENV NODE_ENV production
ENV HOST 0.0.0.0
ENV PORT 8080
EXPOSE 8080

USER node
WORKDIR /home/node/app

COPY --chown=node:node --from=builder /home/node/app /home/node/app

CMD ["./node_modules/@uvue/server/start.js"]
4 changes: 4 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ module.exports = {
presets: [
'@vue/cli-plugin-babel/preset',
],
plugins: [
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator',
],
};
Loading

0 comments on commit 11d1f74

Please sign in to comment.