#1843  docker-executor pipeline issue
Closed
vipul opened 2 weeks ago

Hello @robin

We're using below command to build the image and store the docker cache into S3 but the command also push 2 image without tag in Artifact registry. I have attached screen capture for your reference.

docker buildx build --push -t europe-west1-docker.pkg.dev/@property:PROJECT_ID@/@property:REPOSITORY@/@project_name@:@branch@-@build_number@
--cache-from "type=s3,region=us-east-1,bucket=onedev-docker-cache,access_key_id=@secret:access_key_id@,secret_access_key=@secret:secret_access_key@,prefix=buildx/carbon/"
--cache-to "type=s3,region=us-east-1,bucket=onedev-docker-cache,access_key_id=@secret:access_key_id@,secret_access_key=@secret:secret_access_key@,prefix=buildx/carbon/,mode=max" .

Is there any way or any flag which i use in the command to remove that untag image before push in registry?

iamge.png

Robin Shen commented 2 weeks ago

This seems not OneDev related. You may need to ask the question in buildx forum.

Robin Shen changed state to 'Closed' 2 weeks ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Major
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1843
Please wait...
Page is in error, reload to recover