Browse Source

Added CI deploy step, added OmegleBot pic

master
PHENOM 2 years ago
parent
commit
473dcf773f
4 changed files with 33 additions and 21 deletions
  1. 19
    15
      Jenkinsfile
  2. 6
    0
      package.json
  3. 8
    6
      pages/index.vue
  4. BIN
      static/images/projects/omeglebot/1.png

+ 19
- 15
Jenkinsfile View File

@@ -1,30 +1,34 @@
pipeline {
agent none
agent {
docker {
image 'node:latest'
args '-v $HOME/.npm:/root/.npm -v $HOME/.cache:/root/.cache'
}
}
stages {
stage('Build') {
agent {
docker {
image 'node:latest'
args '-v $HOME/.npm:/root/.npm -v $HOME/.cache:/root/.cache'
}
}
environment { HOME="." }
steps {
sh 'npm ci'
sh 'npm run generate'
sh 'npm run build'
}
}
stage('Archive') {
agent {
docker {
image 'kramos/alpine-zip:latest'
args "--entrypoint=''"
}
steps {
archiveArtifacts '.nuxt/**, static/**, assets/**, package.json, package-lock.json'
}
}
stage('Deploy') {
steps {
sh 'zip -r $BUILD_TAG.zip ./dist'
archiveArtifacts '$BUILD_TAG.zip'
sshPublisher(publishers: [sshPublisherDesc(configName: 'phenom@phenomic.net', transfers: [sshTransfer(cleanRemote: true, excludes: '', execCommand: '''cd ./PHENOMIC.net
npm ci
pm2 restart phenomic''', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'PHENOMIC.net', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '.nuxt/**, static/**, assets/**, package.json, package-lock.json')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
}
}
}
post {
always {
cleanWs()
}
}
}

+ 6
- 0
package.json View File

@@ -4,6 +4,12 @@
"description": "Nuxt.js + Vuetify.js project",
"author": "PHENOMICAL <thephenom1811@gmail.com>",
"private": true,
"config": {
"nuxt": {
"host": "127.0.0.1",
"port": "3333"
}
},
"scripts": {
"dev-debug": "node --inspect node_modules/.bin/nuxt",
"dev": "nuxt",

+ 8
- 6
pages/index.vue View File

@@ -116,6 +116,14 @@ export default {
url: 'https://git.phenomic.net/PHENOM/Texas-Instruments-CC2531-AT-Command-Firmware',
imageBaseUrl: 'ti',
imageUrls: ['1.jpg', '2.jpg']
},
{
name: 'Omegle Discord Bot',
color: 'teal darken-3',
description: 'A Discord Bot that is able to connect to Omegle and interact as a bridge between Discord and Omegle. This bot was written in C#. Sadly this project is now defunct, since Omegle uses now reCAPTCHA v2/3, which makes it impossible for me to handle the received captchas in Discord itself. This project required a MySQL Database, due to it\'s permission and multi-guild system.',
url: 'https://git.phenomic.net/PHENOM/Omegle-Discord-Bot',
imageBaseUrl: 'omeglebot',
imageUrls: ['1.png']
}
],
textProjects: [
@@ -132,12 +140,6 @@ export default {
url: 'https://git.phenomic.net/PHENOM/PHENOMIC.net/src/branch/master/pages/bytebeat.vue'
},
{
name: 'Omegle Discord Bot',
color: 'teal darken-3',
description: 'A Discord Bot that is able to connect to Omegle and interact as a bridge between Discord and Omegle. This bot was written in C#. Sadly this project is now defunct, since Omegle uses now reCAPTCHA v2/3, which makes it impossible for me to handle the received captchas in Discord itself. This project required a MySQL Database, due to it\'s permission and multi-guild system.',
url: 'https://git.phenomic.net/PHENOM/Omegle-Discord-Bot'
},
{
name: 'OpenGL Engine',
color: 'brown darken-3',
description: 'A very simple graphics engine using OpenGL. I\'ve worked on this project for computer graphics courses. It isn\'t fully functional, but can render primitive shapes, has a basic lighting and camera system.',

BIN
static/images/projects/omeglebot/1.png View File


Loading…
Cancel
Save