Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
puerco committed Feb 17, 2022
1 parent b25ca8c commit 830b00d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/promoter/image/sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package imagepromoter

import (
"fmt"
"os"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -72,6 +73,9 @@ func (di *DefaultPromoterImplementation) SignImages(
opts *options.Options, sc *reg.SyncContext, edges map[reg.PromotionEdge]interface{},
) error {
signer := sign.New(sign.Default())
if err := os.Setenv("COSIGN_EXPERIMENTAL", "YES"); err != nil {
return errors.Wrap(err, "setting experimental env")
}
for edge := range edges {
imageRef := fmt.Sprintf(
"%s/%s@%s",
Expand Down

0 comments on commit 830b00d

Please sign in to comment.