Skip to content

Commit

Permalink
octopus-rm-gradle-plugin-26 Ability to set custom header in doc && typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Ryabokon committed Aug 2, 2023
1 parent 4d33661 commit e92de3e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ plugins {
}

version = project.findProperty('buildVersion') ?: '1.0-SNAPSHOT'
def header = project.findProperty('header').toString() ?: 'Octopus release management gradle plugin'
def implLoggingCore = project.findProperty('implLoggingCore').toString() ?: ''
def dockerRegestry = project.findProperty('dockerRegestry').toString() ?: 'registry.hub.docker.com'
def dockerRegistry = project.findProperty('dockerRegistry').toString() ?: 'registry.hub.docker.com'
def golangCommons = project.findProperty('golangCommons').toString() ?: 'com.example.golang.commons:commons:1.0.0:@zip'
def repositoryUrl = project.findProperty('repositoryUrl').toString() ?: 'https://example.com'

Expand All @@ -16,9 +17,10 @@ repositories {
}

asciidoctorj {
attributes 'version-label': version,
attributes 'header': header,
'version-label': version,
'impl-logging-core': implLoggingCore,
'docker-regestry': dockerRegestry,
'docker-registry': dockerRegistry,
'golang-commons': golangCommons,
'repository-url': repositoryUrl
}
Expand Down Expand Up @@ -55,9 +57,10 @@ tasks.register('publishToWiki', DockerTask) {
"PUBLISHING_STRATEGY" : "REPLACE_ANCESTOR",
"ORPHAN_REMOVAL_STRATEGY": "KEEP_ORPHANS",
"NOTIFY_WATCHERS" : "false",
"ATTRIBUTES" : "{\"version-label\": \"$version\", " +
"ATTRIBUTES" : "{\"header\": \"$header\", " +
"\"version-label\": \"$version\", " +
"\"impl-logging-core\":\"${deQuoted(implLoggingCore).replaceAll('"','\\\\"')}\"," +
"\"docker-regestry\":\"$dockerRegestry\"," +
"\"docker-registry\":\"$dockerRegistry\"," +
"\"golang-commons\":\"$golangCommons\"," +
"\"repository-url\":\"$repositoryUrl\"}",
"PUBLISHING_STRATEGY" : "REPLACE_ANCESTOR",
Expand Down
6 changes: 3 additions & 3 deletions docs/src/docs/asciidoc/release-management-gradle-plugin.adoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
= Octopus release management gradle plugin
= {header}
Gradle
v: New hope
:toc:
Expand Down Expand Up @@ -626,7 +626,7 @@ ext {
}
platformDockerWrapper {
image = '{docker-regestry}/platform/go-build:1.1.7'
image = '{docker-registry}/platform/go-build:1.1.7'
workDir = '/buildDir'
dockerOptions = ['--network', 'host']
bindMounts = ["$rootDir:/project/src/${repository}.git", "$buildDir:/buildDir", "$buildDir/deps/:/deps", "$buildDir/go-cache:/.cache"]
Expand Down Expand Up @@ -662,7 +662,7 @@ ext {
}
platformDockerWrapper {
image = '{docker-regestry}/platform/go-build:1.1.7'
image = '{docker-registry}/platform/go-build:1.1.7'
workDir = '/buildDir'
dockerOptions = ['--network', 'host']
bindMounts = ["$rootDir:/project/src/${repository}.git", "$buildDir:/buildDir", "$buildDir/deps/:/deps", "$buildDir/go-cache:/.cache"]
Expand Down

0 comments on commit e92de3e

Please sign in to comment.