move app/* to root of repo

master
Tomáš Mládek 2021-05-16 21:33:59 +02:00
parent 0eefaa7f44
commit e9516556e2
18 changed files with 3 additions and 4 deletions

View File

View File

View File

@ -6,16 +6,15 @@ build site:
image: node:lts image: node:lts
stage: build stage: build
script: script:
- cd app
- npm ci --cache .npm --prefer-offline - npm ci --cache .npm --prefer-offline
- npm run build - npm run build
cache: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- app/.npm - .npm
artifacts: artifacts:
paths: paths:
- app/dist - dist
deploy site: deploy site:
image: instrumentisto/rsync-ssh image: instrumentisto/rsync-ssh
@ -29,4 +28,4 @@ deploy site:
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- rsync -vr -e "ssh -p ${SSH_PORT}" app/dist/ "${DEPLOY_DEST}" - rsync -vr -e "ssh -p ${SSH_PORT}" dist/ "${DEPLOY_DEST}"