Browse Source

Added Jenkins Integration

master
PHENOM 2 years ago
parent
commit
4f3380ef42
4 changed files with 10495 additions and 11 deletions
  1. 0
    6
      .drone.yml
  2. 1
    5
      .gitignore
  3. 30
    0
      Jenkinsfile
  4. 10464
    0
      package-lock.json

+ 0
- 6
.drone.yml View File

@@ -1,6 +0,0 @@
pipeline:
build:
image: node
commands:
- yarn install
- yarn run generate

+ 1
- 5
.gitignore View File

@@ -8,8 +8,4 @@ npm-debug.log
.nuxt

# Nuxt generate
dist

# Custom
package-lock.json
yarn.lock
dist

+ 30
- 0
Jenkinsfile View File

@@ -0,0 +1,30 @@
pipeline {
agent none
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'
}
}
stage('Archive') {
agent {
docker {
image 'kramos/alpine-zip:latest'
args "--entrypoint=''"
}
}
steps {
sh 'zip -r $BUILD_TAG.zip ./dist/*'
archiveArtifacts '$BUILD_TAG.zip'
}
}
}
}

+ 10464
- 0
package-lock.json
File diff suppressed because it is too large
View File


Loading…
Cancel
Save