vizon-countdown-website/Jenkinsfile

30 lines
905 B
Plaintext
Raw Normal View History

// node("docker && linux && amd64") {
// checkout scm
//
// docker.image("node:8.2.1").inside {
// // Install dependencies
// sh "npm install"
//
// // Build website with npm
// sh "npm run build"
// archive "dist/**"
// }
//
// // Build docker image to be deployed
// def image = docker.build("docker.dreamnetwork.oss:5000/icedream/carl-kittelberger-website:${env.BRANCH_NAME ?: "latest"}", "-f Dockerfile.dist .")
//
// // @NOTE - https://issues.jenkins-ci.org/browse/JENKINS-42152?focusedCommentId=307976&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-307976
// image.push()
// if (env.BRANCH_NAME) {
// switch(env.BRANCH_NAME) {
// case "master":
// image.push("latest")
// break
// default:
// image.push()
// break
// }
// }
// image.push("${sh(script: "git describe --tags --always", returnStdout: true).trim()}")
// }