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?
This seems not OneDev related. You may need to ask the question in buildx forum.
Open
Closed
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?