Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/pkg/cli/deploy/svc.go
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ func (d *workloadDeployer) runtimeConfig(in *StackRuntimeConfiguration) (*stack.
if err != nil {
return nil, fmt.Errorf("get version of environment %q: %w", d.env.Name, err)
}
if in.ImageDigest == nil {
if len(aws.StringValue(in.ImageDigest)) == 0 {
return &stack.RuntimeConfig{
AddonsTemplateURL: in.AddonsURL,
EnvFileARN: in.EnvFileARN,
Expand Down
6 changes: 2 additions & 4 deletions internal/pkg/cli/svc_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ func (o *packageSvcOpts) getWorkloadStack(generator workloadStackGenerator) (*cf
if err != nil {
return nil, err
}
uploadOut := clideploy.UploadArtifactsOutput{
ImageDigest: aws.String(""),
}
var uploadOut clideploy.UploadArtifactsOutput
if o.uploadAssets {
out, err := generator.UploadArtifacts()
if err != nil {
Expand All @@ -334,7 +332,7 @@ func (o *packageSvcOpts) getWorkloadStack(generator workloadStackGenerator) (*cf
EnvFileARN: uploadOut.EnvFileARN,
AddonsURL: uploadOut.AddonsURL,
CustomResourceURLs: uploadOut.CustomResourceURLs,
},
},
})
if err != nil {
return nil, fmt.Errorf("generate workload %s template against environment %s: %w", o.name, o.envName, err)
Expand Down
1 change: 0 additions & 1 deletion internal/pkg/cli/svc_package_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ count: 1`
m.generator.EXPECT().AddonsTemplate().Return("", nil)
m.generator.EXPECT().GenerateCloudFormationTemplate(&deploy.GenerateCloudFormationTemplateInput{
StackRuntimeConfiguration: deploy.StackRuntimeConfiguration{
ImageDigest: aws.String(""),
RootUserARN: mockARN,
},
}).Return(&deploy.GenerateCloudFormationTemplateOutput{
Expand Down