mirror of
https://code.forgejo.org/docker/metadata-action.git
synced 2025-08-03 16:28:31 +00:00
Add workflows
This commit is contained in:
parent
03eb07f964
commit
98414716d9
10 changed files with 250 additions and 11 deletions
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
|
@ -115,7 +115,6 @@ function run() {
|
|||
const context = github.context();
|
||||
const repo = yield github.repo(inputs.githubToken);
|
||||
core.startGroup(`Context info`);
|
||||
core.info(`repo: ${context.repo}`);
|
||||
core.info(`eventName: ${context.eventName}`);
|
||||
core.info(`sha: ${context.sha}`);
|
||||
core.info(`ref: ${context.ref}`);
|
||||
|
@ -133,12 +132,16 @@ function run() {
|
|||
core.setOutput('version', version);
|
||||
const tags = meta.tags();
|
||||
core.startGroup(`Docker tags`);
|
||||
core.info(JSON.stringify(tags));
|
||||
for (let tag of tags) {
|
||||
core.info(tag);
|
||||
}
|
||||
core.endGroup();
|
||||
core.setOutput('tags', tags.join(inputs.sepTags));
|
||||
const labels = meta.labels();
|
||||
core.startGroup(`Docker labels`);
|
||||
core.info(JSON.stringify(labels));
|
||||
for (let label of labels) {
|
||||
core.info(label);
|
||||
}
|
||||
core.endGroup();
|
||||
core.setOutput('labels', labels.join(inputs.sepTags));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue