mirror of
https://github.com/status-im/universal-links-handler.git
synced 2025-02-23 16:18:09 +00:00
add jenkinsfile
This commit is contained in:
parent
da11b8a3a9
commit
df2480a589
23
Jenkinsfile
vendored
Normal file
23
Jenkinsfile
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
node('linux') {
|
||||
def image_name = 'statusteam/universal-links-handler'
|
||||
def commit
|
||||
def image
|
||||
|
||||
stage('Git Prep') {
|
||||
checkout scm
|
||||
commit = sh(returnStdout: true, script: 'git rev-parse --short HEAD').trim()
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
image = docker.build(image_name + ':' + commit)
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
withDockerRegistry([
|
||||
credentialsId: "dockerhub-statusteam-auto", url: ""
|
||||
]) {
|
||||
image.push()
|
||||
image.push('latest')
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user