Skip to content

Commit

Permalink
enable docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensel committed Dec 6, 2023
1 parent 404bf31 commit 45bcd29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
./gradlew --no-daemon --info --stacktrace check
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
14 changes: 10 additions & 4 deletions tessellate-main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
java
application
`java-test-fixtures`
id("org.jreleaser") version "1.8.0"
id("org.jreleaser") version "1.9.0"
}

val versionProperties = Properties().apply {
Expand Down Expand Up @@ -281,20 +281,27 @@ jreleaser {
}

docker {
active.set(Active.NEVER)
active.set(Active.ALWAYS)
repository {
repoOwner.set("clusterless")
name.set("tessellate")
tagName.set("{{projectVersion}}")
}

registries {
create("DEFAULT") {
create("dockerhub") {
server.set("hub.docker.com")
externalLogin.set(true)
repositoryName.set("clusterless")
}
}

buildx {
enabled.set(true)
platform("linux/amd64")
platform("linux/arm64")
}

imageName("{{owner}}/{{distributionName}}:{{projectVersion}}")

if (buildRelease) {
Expand All @@ -304,7 +311,6 @@ jreleaser {
} else {
imageName("{{owner}}/{{distributionName}}:latest-wip")
}

}
}
}
Expand Down

0 comments on commit 45bcd29

Please sign in to comment.