mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-06-09 10:39:04 +00:00
Refactor inputs to support docker/metadata-action (#76)
This commit is contained in:
parent
f123b1f960
commit
979e6a6c6e
9 changed files with 142 additions and 23 deletions
src
|
@ -7,7 +7,7 @@ import * as core from "@actions/core";
|
|||
import * as exec from "@actions/exec";
|
||||
import * as path from "path";
|
||||
import CommandResult from "./types";
|
||||
import { isStorageDriverOverlay, findFuseOverlayfsPath } from "./utils";
|
||||
import { isStorageDriverOverlay, findFuseOverlayfsPath, getFullImageName } from "./utils";
|
||||
|
||||
export interface BuildahConfigSettings {
|
||||
entrypoint?: string[];
|
||||
|
@ -157,7 +157,7 @@ export class BuildahCli implements Buildah {
|
|||
async tag(imageName: string, tags: string[]): Promise<CommandResult> {
|
||||
const args: string[] = [ "tag" ];
|
||||
for (const tag of tags) {
|
||||
args.push(`${imageName}:${tag}`);
|
||||
args.push(getFullImageName(imageName, tag));
|
||||
}
|
||||
core.info(`Tagging the built image with tags ${tags.toString()}`);
|
||||
return this.execute(args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue