Compare commits

...

3 Commits

Author SHA1 Message Date
5a951d8c90 Added Jenkinsfile.
Some checks failed
thehideout/TheHideout-UI/pipeline/head There was a failure building this commit
2026-01-02 22:56:20 +00:00
3dfaa50415 Deploy on production branch 2026-01-02 22:39:08 +00:00
9fea5eda26 Added DS Store to gitignore 2026-01-02 22:38:51 +00:00
3 changed files with 28 additions and 2 deletions

3
.gitignore vendored
View File

@ -2,4 +2,5 @@ node_modules
dist
.wrangler
**/DS_Store
DS_Store
DS_Store
.DS_Store

25
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,25 @@
def deploy() {
node('ubuntu') {
try {
stage('Deploy (Ubuntu)') {
checkout scm
nodejs(nodeJSInstallationName: 'Node23') {
sh 'yarn install --frozen-lockfile --production=false'
sh 'NODE_ENV=production yarn build'
// Deploy to Cloudflare Pages using wrangler
withCredentials([string(credentialsId: 'th-cloudflare-api-token', variable: 'CLOUDFLARE_API_TOKEN')]) {
sh 'yarn wrangler pages deploy dist'
}
}
}
} finally {
cleanWs()
}
}
}
deploy()

View File

@ -40,7 +40,7 @@
"build": "vite build",
"lint": "eslint .",
"preview": "npm run build && vite preview",
"deploy": "npm run build && wrangler pages deploy ./dist --skip-caching"
"deploy": "npm run build && wrangler pages deploy ./dist --skip-caching --branch production"
},
"eslintConfig": {
"extends": [