-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1144 from aeternity/release/v0.5.4
Release 0.5.4
- Loading branch information
Showing
140 changed files
with
9,649 additions
and
9,293 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
/dist |
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,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 |
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,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 |
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,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"] |
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
Oops, something went wrong.