Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Jul 17, 2022
1 parent 5b37a0d commit e35c633
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/actions/config-scrapper/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/actions/config-scrapper/index.js.map

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions src/actions/config-scrapper/src/deployment.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@ const github = require("@actions/github");
module.exports = async (analysis) => {
let containerRegistry = core.getInput('containerRegistry', { required: true });

const [ organization, name ] = github.context.payload.repository.full_name.split('/')
const imageFullName = [ containerRegistry, organization, name].join('/')

if (github.context.payload.deployment) {
analysis.environment = github.context.payload.deployment.environment
analysis.outputs.environment = analysis.environment
}

analysis.deployment.tags = [
`${imageFullname}:latest`,
`${imageFullname}:d-${this.output.run.date}`,
`${imageFullname}:r-${this.output.run.count}`,
`${imageFullname}:t-${this.output.run.startTimestamp}`,
`${imageFullname}:b-${this.output.git.branch.replace('/', '-')}`,
`${imageFullname}:c-${this.output.git.commit}`,
`${imageFullName}:latest`,
`${imageFullName}:d-${this.output.run.date}`,
`${imageFullName}:r-${this.output.run.count}`,
`${imageFullName}:t-${this.output.run.startTimestamp}`,
`${imageFullName}:b-${this.output.git.branch.replace('/', '-')}`,
`${imageFullName}:c-${this.output.git.commit}`,
// `${imageFullName}:node-${matrix.node-version}`,
// `${imageFullName}:node-${matrix.node-version}-latest`,
// `${imageFullName}:node-${matrix.node-version}-d-${needs.Setup.outputs.Date}`,
Expand Down

0 comments on commit e35c633

Please sign in to comment.