File tree 2 files changed +13
-12
lines changed
2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 4
4
release :
5
5
types : [published]
6
6
7
+ env :
8
+ IMAGE_BASE_NAME : docker.pkg.github.com/${{ github.repository }}/${{ github.repository }}
9
+
7
10
jobs :
8
11
publish-release :
9
12
runs-on : ubuntu-latest
35
38
echo "New version: ${NEW_VERSION}"
36
39
echo "Github username: ${GITHUB_ACTOR}"
37
40
./gradlew -Pversion=${NEW_VERSION} publish
41
+ ./gradlew jibDockerBuild --image="${IMAGE_BASE_NAME}:${NEW_VERSION}"
42
+ echo "$GITHUB_TOKEN" | docker login --username "$GITHUB_REPOSITORY" --password-stdin https://docker.pkg.github.com
43
+ docker push "${IMAGE_BASE_NAME}:${NEW_VERSION}"
44
+
Original file line number Diff line number Diff line change @@ -97,16 +97,6 @@ publishing {
97
97
developerConnection.set(" scm:git:ssh://github.com/navikt/${rootProject.name} .git" )
98
98
url.set(" https://github.com/navikt/${rootProject.name} " )
99
99
}
100
- withXml {
101
- // dependencies.
102
- /* asNode().dependencies.'*'.findAll() {
103
- it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
104
- dep.name == it.artifactId.text()
105
- }
106
- }.each() {
107
- it.scope*.value = 'compile'
108
- }*/
109
- }
110
100
}
111
101
}
112
102
}
@@ -173,11 +163,15 @@ tasks {
173
163
useJUnitPlatform()
174
164
}
175
165
176
- " build" {
166
+ " jibDockerBuild" {
167
+ dependsOn(" shadowJar" )
168
+ }
169
+ /*
170
+ "publish" {
177
171
dependsOn("shadowJar")
178
172
dependsOn("jibDockerBuild")
179
173
}
180
-
174
+ */
181
175
withType<Sign >().configureEach {
182
176
onlyIf { ! version.toString().endsWith(" SNAPSHOT" ) }
183
177
}
You can’t perform that action at this time.
0 commit comments