Merge pull request #203 from crazy-max/san-fix
ci / multi-images (push) Successful in 7s
Details
ci / tag-schedule () (push) Successful in 7s
Details
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 7s
Details
ci / tag-schedule (schedule) (push) Successful in 7s
Details
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Successful in 7s
Details
ci / tag-match (\d.\d, 0) (push) Successful in 7s
Details
ci / tag-match (\d.\d.\d, 0) (push) Successful in 7s
Details
ci / tag-match (v(.*), 1) (push) Successful in 7s
Details
ci / tag-semver (auto) (push) Successful in 7s
Details
ci / tag-semver (false) (push) Successful in 7s
Details
ci / tag-semver (true) (push) Successful in 7s
Details
ci / flavor (push) Successful in 7s
Details
ci / images (push) Successful in 7s
Details
ci / labels (push) Successful in 6s
Details
ci / global-exps (push) Successful in 7s
Details
ci / json (push) Successful in 7s
Details
ci / docker-push (push) Failing after 17s
Details
ci / bake (push) Failing after 11s
Details
ci / multi-images (push) Successful in 7s
Details
ci / tag-schedule () (push) Successful in 7s
Details
ci / tag-schedule (cron-{{date 'YYYYMMDD'}}) (push) Successful in 7s
Details
ci / tag-schedule (schedule) (push) Successful in 7s
Details
ci / tag-schedule ({{date 'YYYYMMDD-HHmmss'}}) (push) Successful in 7s
Details
ci / tag-match (\d.\d, 0) (push) Successful in 7s
Details
ci / tag-match (\d.\d.\d, 0) (push) Successful in 7s
Details
ci / tag-match (v(.*), 1) (push) Successful in 7s
Details
ci / tag-semver (auto) (push) Successful in 7s
Details
ci / tag-semver (false) (push) Successful in 7s
Details
ci / tag-semver (true) (push) Successful in 7s
Details
ci / flavor (push) Successful in 7s
Details
ci / images (push) Successful in 7s
Details
ci / labels (push) Successful in 6s
Details
ci / global-exps (push) Successful in 7s
Details
ci / json (push) Successful in 7s
Details
ci / docker-push (push) Failing after 17s
Details
ci / bake (push) Failing after 11s
Details
Sanitize tag earlier
This commit is contained in:
commit
69f6fc9d46
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -312,6 +312,7 @@ export class Meta {
|
||||||
if (val.length == 0) {
|
if (val.length == 0) {
|
||||||
return version;
|
return version;
|
||||||
}
|
}
|
||||||
|
val = Meta.sanitizeTag(val);
|
||||||
if (version.main == undefined) {
|
if (version.main == undefined) {
|
||||||
version.main = val;
|
version.main = val;
|
||||||
} else if (val !== version.main) {
|
} else if (val !== version.main) {
|
||||||
|
@ -424,9 +425,9 @@ export class Meta {
|
||||||
}
|
}
|
||||||
const tags: Array<string> = [];
|
const tags: Array<string> = [];
|
||||||
for (const imageName of this.getImageNames()) {
|
for (const imageName of this.getImageNames()) {
|
||||||
tags.push(`${imageName}:${Meta.sanitizeTag(this.version.main)}`);
|
tags.push(`${imageName}:${this.version.main}`);
|
||||||
for (const partial of this.version.partial) {
|
for (const partial of this.version.partial) {
|
||||||
tags.push(`${imageName}:${Meta.sanitizeTag(partial)}`);
|
tags.push(`${imageName}:${partial}`);
|
||||||
}
|
}
|
||||||
if (this.version.latest) {
|
if (this.version.latest) {
|
||||||
const latestTag = `${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`;
|
const latestTag = `${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`;
|
||||||
|
|
Loading…
Reference in New Issue