Skip to content

Commit

Permalink
app-run: polish req log and add missing certs in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sfwn committed Jul 23, 2024
1 parent e67ad9e commit eaec8f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions actions/app-run/1.0/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ RUN GOOS=linux GOARCH=$ARCH go build -o /assets/run actions/app-run/1.0/internal
RUN GOOS=linux GOARCH=$ARCH go build -o /assets/when_sigterm actions/app-run/1.0/internal/appCancel/cmd/*.go

FROM --platform=$TARGETPLATFORM registry.erda.cloud/retag/debian:bookworm
RUN apt update && apt install -y ca-certificates openssl --no-install-recommends
COPY --from=builder /assets /opt/action
2 changes: 1 addition & 1 deletion actions/app-run/1.0/dice.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### job 配置项
jobs:
api-run:
image: registry.erda.cloud/erda-actions/app-run-action:1.0-20240723171734-44f8500
image: registry.erda.cloud/erda-actions/app-run-action:1.0-20240723204910-e67ad9e
resources:
cpu: 0.5
mem: 1024
4 changes: 2 additions & 2 deletions actions/app-run/1.0/internal/appRun/appRun.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func handleAPIs() error {
Source: apistructs.PipelineSourceDice,
AutoRun: true,
}
b, _ := json.Marshal(&req)
logrus.Infof("req: %s", string(b))
b, _ := json.MarshalIndent(&req, "", " ")
fmt.Printf("req: %s\n", string(b))
pipelineDTO, err := startPipeline(req)
if err != nil {
return err
Expand Down

0 comments on commit eaec8f1

Please sign in to comment.