Skip to content

Commit

Permalink
Rename workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Feb 19, 2025
1 parent d807840 commit c0a13b0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@
}
}
},
"required": ["flavors"]
"required": ["build"]
}
12 changes: 6 additions & 6 deletions .github/workflows/build-docker-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
const imageTagBranchName = "${{ github.ref }}".replace('refs/heads/', '').replace('refs/tags/', '').replace(/[^a-zA-Z0-9._-]/g, '-');
const imageTag = `tagged-${imageTagBranchName}-${buildTime}`;
const flavors = Object.entries(config.build).filter([id, flavor] => flavor.skip !== true).map([id, flavor] => {
const flavors = Object.entries(config.build).filter(([id, flavor]) => flavor.skip !== true).map(([id, flavor]) => {
return {
...flavor,
id,
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
const result = {
flavors,
components: flattenedComponents,
customers: Object.keys(config.push).join(','),
push_to: Object.keys(config.push).join(','),
};
console.log(result);
return result;
Expand Down Expand Up @@ -292,13 +292,13 @@ jobs:
shell: bash
run: docker logout ${{ steps.login-ecr.outputs.registry }}

push-to-customers:
name: Push images to customers
push-to-repositories:
name: Push images to push targets
# if? When should we do this? Always? Only for certain branches? If so, how should we define that, in the config.json?
needs: [retag-images, get-flavors]
uses: datavisyn/github-workflows/.github/workflows/build-docker-artifacts-trigger-push-to-customer.yml@mp/push_docker
uses: datavisyn/github-workflows/.github/workflows/build-docker-artifacts-trigger-push.yml@mp/push_docker
secrets: inherit
with:
customers: ${{ fromJson(needs.get-flavors.outputs.result).customers }}
push_to: ${{ fromJson(needs.get-flavors.outputs.result).push_to }}
branch: ${{ inputs.branch }}
runs_on: ${{ inputs.runs_on || 'ubuntu-22.04' }}

0 comments on commit c0a13b0

Please sign in to comment.