Skip to content

Commit 7d3eb66

Browse files
author
Jamie Curnow
committed
Added auto github release
1 parent f99d316 commit 7d3eb66

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

Jenkinsfile.debian9

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ pipeline {
44
disableConcurrentBuilds()
55
}
66
agent {
7-
label 'rpm'
8-
}
9-
environment {
10-
PACKAGE = "lazydocker"
7+
label 'dpkg'
118
}
129
stages {
1310
stage('Prepare') {
@@ -32,7 +29,11 @@ pipeline {
3229
}
3330
stage('Publish') {
3431
steps {
35-
archiveArtifacts(artifacts: "${PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
32+
script {
33+
def Dpkg = readJSON file: 'dpkg.json'
34+
archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
35+
dpkgGithubRelease('debian9')
36+
}
3637
}
3738
}
3839
}

Jenkinsfile.mint19

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ pipeline {
44
disableConcurrentBuilds()
55
}
66
agent {
7-
label 'rpm'
8-
}
9-
environment {
10-
PACKAGE = "lazydocker"
7+
label 'dpkg'
118
}
129
stages {
1310
stage('Prepare') {
@@ -32,7 +29,11 @@ pipeline {
3229
}
3330
stage('Publish') {
3431
steps {
35-
archiveArtifacts(artifacts: "${PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
32+
script {
33+
def Dpkg = readJSON file: 'dpkg.json'
34+
archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true)
35+
dpkgGithubRelease('mint19')
36+
}
3637
}
3738
}
3839
}

dpkg.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"VERSION": "0.7.4",
55
"GH_VERSION": "0.7.4",
66
"URL": "https://github.com/${GH_USER}/${PACKAGE}/archive/v${GH_VERSION}.tar.gz",
7-
"SIGN_KEY": "EFD591B218E19AE3376D80D14F9E050D1DFFBB86"
7+
"SIGN_KEY": "EFD591B218E19AE3376D80D14F9E050D1DFFBB86",
8+
"publish": {
9+
"GH_USER": "jc21-dpkg"
10+
}
811
}

0 commit comments

Comments
 (0)