Jesse James Isler
450a986494
All checks were successful
Schedulord/schedulord-discordbot/pipeline/head This commit looks good
29 lines
432 B
Groovy
29 lines
432 B
Groovy
pipeline {
|
|
agent any
|
|
tools {
|
|
nodejs "node"
|
|
}
|
|
|
|
environment {
|
|
TOKEN = credentials('schedulord-token')
|
|
}
|
|
|
|
stages {
|
|
stage('Replace Keys') {
|
|
steps {
|
|
sh("sed -i 's/((YourToken))/$TOKEN/g' .env")
|
|
}
|
|
}
|
|
stage('NPM Install') {
|
|
steps {
|
|
sh 'npm install'
|
|
}
|
|
}
|
|
stage('Build Dockerfile') {
|
|
steps {
|
|
sh 'docker build . -t schedulord-frontend'
|
|
}
|
|
}
|
|
}
|
|
}
|