Commit c54d928c authored by nanahira's avatar nanahira

deploy

parent d7af8fce
Pipeline #42787 failed with stage
in 24 seconds
stages:
- build
- deploy
variables:
GIT_DEPTH: "1"
build:
stage: build
dependencies: []
tags:
- linux
script:
- npm ci
- npm run build
artifacts:
paths:
- dist/
deploy_to_server:
stage: deploy
dependencies:
- build
tags:
- linux
variables:
TARGET_HOST: hanasame.yuzurisa.com
TARGET_USER: root
FROM_DIR: ./dist/ygopro-cardtest-web/browser/
TARGET_DIR: /root/nginx/sites/ygotest.yuzurisa.com
script:
- apt update && apt -y install openssh-client rsync coreutils
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan "$TARGET_HOST" >> ~/.ssh/known_hosts
- echo "$NANAHIRA_SSH_KEY" | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavzP --delete "$FROM_DIR" "$TARGET_USER"@"$TARGET_HOST":"$TARGET_DIR"
only:
- main
......@@ -19,6 +19,12 @@
"options": {
"browser": "src/main.ts",
"tsConfig": "tsconfig.app.json",
"externalDependencies": [
"fs",
"path",
"crypto",
"util"
],
"assets": [
{
"glob": "**/*",
......
......@@ -16,7 +16,7 @@
"@angular/router": "^21.1.0",
"bootstrap": "^5.3.8",
"jszip": "^3.10.1",
"koishipro-core.js": "^1.0.8",
"koishipro-core.js": "^1.0.9",
"rxjs": "~7.8.0",
"sql.js": "^1.13.0",
"tslib": "^2.3.0"
......@@ -7284,9 +7284,9 @@
}
},
"node_modules/koishipro-core.js": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/koishipro-core.js/-/koishipro-core.js-1.0.8.tgz",
"integrity": "sha512-esab/3lOfxijEpKHbl503mgfMEWQ/E5QI26yb13DY1VAlbF/FwCar2EDy1ULmnxINsLR5ptCv8EtJ4hZZ6RDiA==",
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/koishipro-core.js/-/koishipro-core.js-1.0.9.tgz",
"integrity": "sha512-Gd405x0Mr+TUZ5S4P1O7dtrOdbVmFohM5SKWBAnm7ihK1ix150mHaBVWnZKXsWga3sWA57GljRbPC4N+1rtiDA==",
"license": "MIT",
"dependencies": {
"@types/emscripten": "^1.41.5",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment