Skip to content

Commit

Permalink
testing docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
Uroš Marolt committed Jan 9, 2024
1 parent 5a4aedf commit 9c7e745
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/actions/node/builder/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26530,13 +26530,13 @@ const deployStep = async () => {
else {
servicesToUpdate.push(service);
}
core.info(`Deploying service: ${service} with image: ${image}:${tag} to deployments: ${servicesToUpdate.join(', ')}`);
core.info(`Deploying service: ${service} with image: ${builderDefinition.dockerRepository}:${tag} to deployments: ${servicesToUpdate.join(', ')}`);
for (const toDeploy of servicesToUpdate) {
exitCode = await exec.exec('kubectl', [
'set',
'image',
`deployments/${toDeploy}-dpl`,
`${toDeploy}=${image}:${tag}`,
`${toDeploy}=${builderDefinition.dockerRepository}:${tag}`,
]);
if (exitCode !== 0) {
core.error(`Failed to deploy service: ${service} to deployment: ${toDeploy}`);
Expand Down
8 changes: 4 additions & 4 deletions .github/actions/node/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,17 @@ export const deployStep = async (): Promise<void> => {
}

core.info(
`Deploying service: ${service} with image: ${image}:${tag} to deployments: ${servicesToUpdate.join(
', ',
)}`,
`Deploying service: ${service} with image: ${
builderDefinition.dockerRepository
}:${tag} to deployments: ${servicesToUpdate.join(', ')}`,
)

for (const toDeploy of servicesToUpdate) {
exitCode = await exec.exec('kubectl', [
'set',
'image',
`deployments/${toDeploy}-dpl`,
`${toDeploy}=${image}:${tag}`,
`${toDeploy}=${builderDefinition.dockerRepository}:${tag}`,
])

if (exitCode !== 0) {
Expand Down

0 comments on commit 9c7e745

Please sign in to comment.