Skip to content

Instantly share code, notes, and snippets.

@adrianchifor
Last active May 26, 2017 18:08
Show Gist options
  • Save adrianchifor/8d09d2300cedc5e22d48c8791681beae to your computer and use it in GitHub Desktop.
Save adrianchifor/8d09d2300cedc5e22d48c8791681beae to your computer and use it in GitHub Desktop.
Jenkinsfile k8s
pipeline {
publish {
container('example')
}
kubernetes {
name('example')
secrets('example.yml')
environment {
name('development')
fromBranch('development')
}
environment {
name('production')
approvalRequired(true)
fromBranch('master')
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment