trigger.dev 3.0.0-beta.29 → 3.0.0-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -799,7 +799,7 @@ import invariant from "tiny-invariant";
799
799
  import { z as z4 } from "zod";
800
800
 
801
801
  // package.json
802
- var version = "3.0.0-beta.29";
802
+ var version = "3.0.0-beta.30";
803
803
  var dependencies = {
804
804
  "@anatine/esbuild-decorators": "^0.2.19",
805
805
  "@clack/prompts": "^0.7.0",
@@ -816,7 +816,7 @@ var dependencies = {
816
816
  "@opentelemetry/sdk-trace-base": "^1.22.0",
817
817
  "@opentelemetry/sdk-trace-node": "^1.22.0",
818
818
  "@opentelemetry/semantic-conventions": "^1.22.0",
819
- "@trigger.dev/core": "workspace:3.0.0-beta.29",
819
+ "@trigger.dev/core": "workspace:3.0.0-beta.30",
820
820
  "@types/degit": "^2.8.3",
821
821
  chalk: "^5.2.0",
822
822
  chokidar: "^3.5.3",
@@ -3800,7 +3800,8 @@ var DeployCommandOptions = CommonCommandOptions.extend({
3800
3800
  outputMetafile: z4.string().optional(),
3801
3801
  apiUrl: z4.string().optional(),
3802
3802
  saveLogs: z4.boolean().default(false),
3803
- skipUpdateCheck: z4.boolean().default(false)
3803
+ skipUpdateCheck: z4.boolean().default(false),
3804
+ noCache: z4.boolean().default(false)
3804
3805
  });
3805
3806
  function configureDeployCommand(program2) {
3806
3807
  return commonOptions(
@@ -3817,6 +3818,11 @@ function configureDeployCommand(program2) {
3817
3818
  "--self-hosted",
3818
3819
  "Build and load the image using your local Docker. Use the --registry option to specify the registry to push the image to when using --self-hosted, or just use --push-image to push to the default registry."
3819
3820
  ).hideHelp()
3821
+ ).addOption(
3822
+ new CommandOption(
3823
+ "--no-cache",
3824
+ "Do not use the cache when building the image. This will slow down the build process but can be useful if you are experiencing issues with the cache."
3825
+ ).hideHelp()
3820
3826
  ).addOption(
3821
3827
  new CommandOption(
3822
3828
  "--push",
@@ -3958,7 +3964,8 @@ async function _deployCommand(dir, options) {
3958
3964
  projectRef: resolvedConfig.config.project,
3959
3965
  buildPlatform: options.buildPlatform,
3960
3966
  pushImage: options.push,
3961
- selfHostedRegistry: !!options.registry
3967
+ selfHostedRegistry: !!options.registry,
3968
+ noCache: options.noCache
3962
3969
  });
3963
3970
  }
3964
3971
  if (!deploymentResponse.data.externalBuildData) {
@@ -3981,7 +3988,8 @@ async function _deployCommand(dir, options) {
3981
3988
  contentHash: deploymentResponse.data.contentHash,
3982
3989
  projectRef: resolvedConfig.config.project,
3983
3990
  loadImage: options.loadImage,
3984
- buildPlatform: options.buildPlatform
3991
+ buildPlatform: options.buildPlatform,
3992
+ noCache: options.noCache
3985
3993
  },
3986
3994
  deploymentSpinner
3987
3995
  );
@@ -4034,7 +4042,8 @@ async function _deployCommand(dir, options) {
4034
4042
  const startIndexingResponse = await environmentClient.startDeploymentIndexing(
4035
4043
  deploymentResponse.data.id,
4036
4044
  {
4037
- imageReference
4045
+ imageReference,
4046
+ selfHosted: options.selfHosted
4038
4047
  }
4039
4048
  );
4040
4049
  if (!startIndexingResponse.success) {
@@ -4294,6 +4303,7 @@ async function buildAndPushImage(options, updater) {
4294
4303
  "build",
4295
4304
  "-f",
4296
4305
  "Containerfile",
4306
+ options.noCache ? "--no-cache" : void 0,
4297
4307
  "--platform",
4298
4308
  options.buildPlatform,
4299
4309
  "--provenance",
@@ -4385,6 +4395,7 @@ async function buildAndPushSelfHostedImage(options) {
4385
4395
  "build",
4386
4396
  "-f",
4387
4397
  "Containerfile",
4398
+ options.noCache ? "--no-cache" : void 0,
4388
4399
  "--platform",
4389
4400
  options.buildPlatform,
4390
4401
  "--build-arg",
@@ -4402,7 +4413,9 @@ async function buildAndPushSelfHostedImage(options) {
4402
4413
  "."
4403
4414
  // The build context
4404
4415
  ].filter(Boolean);
4405
- logger.debug(`docker ${buildArgs.join(" ")}`);
4416
+ logger.debug(`docker ${buildArgs.join(" ")}`, {
4417
+ cwd: options.cwd
4418
+ });
4406
4419
  span.setAttribute("docker.command.build", `docker ${buildArgs.join(" ")}`);
4407
4420
  const buildProcess = execa2("docker", buildArgs, {
4408
4421
  cwd: options.cwd