File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ jobs:
138
138
docker.image.tags.push(opt.input.tag);
139
139
docker.image.tags.push(`${opt.input.tag}-${docker.app.version}`);
140
140
docker.cache.name = `${docker.image.name}:buildcache-${opt.input.tag}`;
141
- }else{
141
+ }else if(opt.dot?.semver?.version) {
142
142
const semver = opt.dot.semver.version.split('.');
143
143
docker.image.tags.push(`${context.sha.substring(0,7)}`);
144
144
if(Array.isArray(semver)){
@@ -148,6 +148,8 @@ jobs:
148
148
}
149
149
if(opt.dot.semver?.stable && new RegExp(opt.dot.semver.stable, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('stable');
150
150
if(opt.dot.semver?.latest && new RegExp(opt.dot.semver.latest, 'ig').test(docker.image.tags.join(','))) docker.image.tags.push('latest');
151
+ }else if(opt.input?.version && opt.input.version === 'latest'){
152
+ docker.image.tags.push('latest');
151
153
}
152
154
153
155
for(let i=0; i<docker.image.tags.length; i++){
You can’t perform that action at this time.
0 commit comments