This commit is contained in:
Andres Almiray
2021-05-13 15:24:27 +02:00
parent 6dd3610159
commit 87ea3bc922
3 changed files with 52 additions and 10 deletions

View File

@@ -857,7 +857,7 @@ distributions:
- serverName: DEFAULT
# inherited by specs
labels:
'org.opencontainers.image.title': '{{repoOwner}}'
'org.opencontainers.image.title': 'jreleaser'
# inherited by specs
postCommands:
- 'VOLUME /workspace'
@@ -865,8 +865,8 @@ distributions:
specs:
slim:
imageNames:
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:{{tagName}}'
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:latest'
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
# match by platform
matchers:
platform: 'linux'
@@ -875,8 +875,8 @@ distributions:
- 'RUN apt-get install unzip'
alpine:
imageNames:
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:{{tagName}}'
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:latest'
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
# match by platform
matchers:
platform: 'linux_musl'

View File

@@ -30,6 +30,12 @@ signing:
# icon:dot-circle[]
armored: true
# How should GPG keys be handled.
# Valid values are [`MEMORY`, `FILE`].
# Defaults to `MEMORY`.
# icon:dot-circle[]
mode: MEMORY
# The public GPG (ascii armored) used to sign files and commits.
# If left unspecified, the `JRELEASER_GPG_PUBLIC_KEY`
# environment variable must be defined.
@@ -66,6 +72,12 @@ TOML::
# icon:dot-circle[]
armored = true
# How should GPG keys be handled.
# Valid values are [`MEMORY`, `FILE`].
# Defaults to `MEMORY`.
# icon:dot-circle[]
mode = 'MEMORY'
# The public GPG (ascii armored) used to sign files and commits.
# If left unspecified, the `JRELEASER_GPG_PUBLIC_KEY`
# environment variable must be defined.
@@ -102,6 +114,12 @@ JSON::
// icon:dot-circle[]
"armored": true,
// How should GPG keys be handled.
// Valid values are [`MEMORY`, `FILE`].
// Defaults to `MEMORY`.
// icon:dot-circle[]
"mode": "MEMORY",
// The public GPG (ascii armored) used to sign files and commits.
// If left unspecified, the `JRELEASER_GPG_PUBLIC_KEY`
// environment variable must be defined.
@@ -148,6 +166,14 @@ Maven::
-->
<armored>true</armored>
<!--
How should GPG keys be handled.
Valid values are [`MEMORY`, `FILE`].
Defaults to `MEMORY`.
icon:dot-circle[]
-->
<mode>MEMORY</mode>
<!--
The public GPG (ascii armored) used to sign files and commits.
If left unspecified, the `JRELEASER_GPG_PUBLIC_KEY`
@@ -193,6 +219,12 @@ jreleaser {
// icon:dot-circle[]
armored = true
// How should GPG keys be handled.
// Valid values are [`MEMORY`, `FILE`].
// Defaults to `MEMORY`.
// icon:dot-circle[]
mode = 'MEMORY'
// The public GPG (ascii armored) used to sign files and commits.
// If left unspecified, the `JRELEASER_GPG_PUBLIC_KEY`
// environment variable must be defined.
@@ -216,3 +248,12 @@ jreleaser {
====
WARNING: Prefer the use of xref:configuration:environment.adoc[] if the configuration is stored at a public repository.
== Mode
When the mode is set to `MEMORY` (the default) then the values of `JRELEASER_GPG_PUBLIC_KEY` and
`JRELEASER_GPG_SECRET_KEY` are treated as the actual contents for each key.
When the mode is set to `FILE` then the values of `JRELEASER_GPG_PUBLIC_KEY` and
`JRELEASER_GPG_SECRET_KEY` are treated as file paths pointing to files that the keys.

View File

@@ -188,9 +188,10 @@ distributions:
# inherited by specs
registries:
- serverName: DEFAULT
username: jreleaser
# inherited by specs
labels:
'org.opencontainers.image.title': '{{repoOwner}}'
'org.opencontainers.image.title': 'jreleaser'
# inherited by specs
postCommands:
- 'VOLUME /workspace'
@@ -198,8 +199,8 @@ distributions:
specs:
slim:
imageNames:
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:{{tagName}}'
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:latest'
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
# match by platform
matchers:
platform: 'linux'
@@ -208,8 +209,8 @@ distributions:
- 'RUN apt-get install unzip'
alpine:
imageNames:
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:{{tagName}}'
- '{{repoOwner}}/{{repoOwner}}-{{dockerSpecName}}:latest'
- 'jreleaser/jreleaser-{{dockerSpecName}}:{{tagName}}'
- 'jreleaser/jreleaser-{{dockerSpecName}}:latest'
# match by platform
matchers:
platform: 'linux_musl'