Skip to content

Commit

Permalink
chore: added new build args
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Sep 5, 2023
1 parent 6d93793 commit 1a2e7a5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .github/actions/config-scrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112294,7 +112294,8 @@ var deploy = async (analysis) => {
analysis.deployment.tags = tags;
analysis.deployment.fullname_tag = fullname_tag;
analysis.deployment.fullname_tags = fullname_tags;
analysis.deployment.tagsString = fullname_tags.join(',');
analysis.deployment.tags_string = fullname_tags.join(',');
analysis.deployment.tags_command = fullname_tags.map(t => `--tag ${tag}`).join(' ');
logger$3.info('deployment', `tag = ${tag}`);

let args = "";
Expand All @@ -112313,10 +112314,10 @@ var deploy = async (analysis) => {

let labels = [ `org.opencontainers.image.source=https://github.com/${organization}/${name}` ];
analysis.deployment.labels = labels;
analysis.deployment.labelsString = labels.join(',');
analysis.deployment.labels_string = labels.join(',');
analysis.deployment.labels_command = labels.map(t => `--label ${tag}`).join(' ');
logger$3.info('deployment', `labels = ${labels}`);


if (github$5.context.payload.deployment) {
// k8s
analysis.deployment.namespace = `${name}-${analysis.environment}`;
Expand Down Expand Up @@ -112350,8 +112351,10 @@ var deploy = async (analysis) => {
analysis.outputs.deploy_tag = analysis.deployment.tag;
analysis.outputs.deploy_fullname_tag = analysis.deployment.fullname_tag;
analysis.outputs.build_args = analysis.deployment.build_args;
analysis.outputs.build_tags = analysis.deployment.tagsString;
analysis.outputs.build_labels = analysis.deployment.labelsString;
analysis.outputs.build_tags = analysis.deployment.tags_string;
analysis.outputs.build_tags_command = analysis.deployment.tags_command;
analysis.outputs.build_labels = analysis.deployment.labels_string;
analysis.outputs.build_labels_command = analysis.deployment.labels_command;
};

const github$4 = github$6;
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/config-scrapper/index.js.map

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions src/actions/config-scrapper/src/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ module.exports = async (analysis) => {
analysis.deployment.tags = tags
analysis.deployment.fullname_tag = fullname_tag
analysis.deployment.fullname_tags = fullname_tags
analysis.deployment.tagsString = fullname_tags.join(',')
analysis.deployment.tags_string = fullname_tags.join(',')
analysis.deployment.tags_command = fullname_tags.map(t => `--tag ${tag}`).join(' ')
logger.info('deployment', `tag = ${tag}`)

let args = ""
Expand All @@ -92,10 +93,10 @@ module.exports = async (analysis) => {

let labels = [ `org.opencontainers.image.source=https://github.com/${organization}/${name}` ]
analysis.deployment.labels = labels
analysis.deployment.labelsString = labels.join(',')
analysis.deployment.labels_string = labels.join(',')
analysis.deployment.labels_command = labels.map(t => `--label ${tag}`).join(' ')
logger.info('deployment', `labels = ${labels}`)


if (github.context.payload.deployment) {
// k8s
analysis.deployment.namespace = `${name}-${analysis.environment}`
Expand Down Expand Up @@ -129,6 +130,8 @@ module.exports = async (analysis) => {
analysis.outputs.deploy_tag = analysis.deployment.tag
analysis.outputs.deploy_fullname_tag = analysis.deployment.fullname_tag
analysis.outputs.build_args = analysis.deployment.build_args
analysis.outputs.build_tags = analysis.deployment.tagsString
analysis.outputs.build_labels = analysis.deployment.labelsString
analysis.outputs.build_tags = analysis.deployment.tags_string
analysis.outputs.build_tags_command = analysis.deployment.tags_command
analysis.outputs.build_labels = analysis.deployment.labels_string
analysis.outputs.build_labels_command = analysis.deployment.labels_command
}

0 comments on commit 1a2e7a5

Please sign in to comment.