schedulord-discordbot/Jenkinsfile

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'
}
}
}
}