Skip to content

Commit

Permalink
use as serverless base
Browse files Browse the repository at this point in the history
  • Loading branch information
jbudz committed May 10, 2024
1 parent 862944f commit 5c6e407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/dev/build/tasks/os_packages/create_os_package_tasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ export const CreateDockerServerless: Task = {
async run(config, log, build) {
await runDockerGenerator(config, log, build, {
architecture: 'x64',
baseImage: 'ubuntu',
baseImage: 'chainguard',
context: false,
serverless: true,
image: true,
dockerBuildDate,
});
await runDockerGenerator(config, log, build, {
architecture: 'aarch64',
baseImage: 'ubuntu',
baseImage: 'chainguard',
context: false,
serverless: true,
image: true,
Expand Down Expand Up @@ -206,7 +206,7 @@ export const CreateDockerContexts: Task = {
image: false,
});
await runDockerGenerator(config, log, build, {
baseImage: 'ubuntu',
baseImage: 'chainguard',
serverless: true,
context: true,
image: false,
Expand Down
2 changes: 1 addition & 1 deletion src/dev/build/tasks/os_packages/docker_generator/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function runDockerGenerator(

let imageFlavor = '';
if (flags.baseImage === 'ubi') imageFlavor += `-ubi`;
if (flags.baseImage === 'chainguard') imageFlavor += `-chainguard`;
if (flags.baseImage === 'chainguard' && !flags.serverless) imageFlavor += `-chainguard`;
if (flags.ironbank) imageFlavor += '-ironbank';
if (flags.cloud) imageFlavor += '-cloud';
if (flags.serverless) imageFlavor += '-serverless';
Expand Down

0 comments on commit 5c6e407

Please sign in to comment.