CARVIEW |
Select Language
HTTP/2 200
date: Mon, 13 Oct 2025 04:48:41 GMT
content-type: text/html; charset=utf-8
cache-control: max-age=0, private, must-revalidate
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
link: ; rel=preload; as=fetch; crossorigin=use-credentials
referrer-policy: no-referrer-when-downgrade
server-timing: issue_layout-fragment;desc="issue_layout fragment";dur=160.686437,issue_conversation_content-fragment;desc="issue_conversation_content fragment";dur=803.521387,nginx;desc="NGINX";dur=1.372508,glb;desc="GLB";dur=136.424418
strict-transport-security: max-age=31536000; includeSubdomains; preload
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With, Accept,Accept-Encoding, Accept, X-Requested-With
x-content-type-options: nosniff
x-frame-options: deny
x-voltron-version: aab62e3
x-xss-protection: 0
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=2qXcN20qmZgzCGcBasgb48e8POLqEF3xh%2B%2Ffp5A4WGmLjzuenZeP22xk3otOeIUBYV4qEskI5HOIXOwnQ7hIKOFK7Hev9QJUuwu3c7DA4%2F2xmwO1Tmr4p17Zw6cTDqHbNsGCSyThuf4Ve2AcV1DN83dklT69kRI3jAAUMrew5HtKci5hx7qbnA1jboK5cVBR4E0eq9dmvFamxmk0AptsKBMo2l9l1s67j04wUOWBulhyRafd%2BrA00CBdArF26VWP08qauSK6PUjGSYHZh%2BYtjA%3D%3D--x%2BW9UrlkhegejXrk--TsyX6gDa%2Fyjmqv%2Fza7CAYg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.721660747.1760330920; Path=/; Domain=github.com; Expires=Tue, 13 Oct 2026 04:48:40 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 13 Oct 2026 04:48:40 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C0EA:3FDFA5:1541F5E:1C4D711:68EC84A8
dockerPush doesn't generate (and thus push) all Tags Β· Issue #149 Β· palantir/gradle-docker Β· GitHub
No one assignedNo labelsNo typeNo projectsNo milestoneNone yetNo branches or pull requests
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 163
Open
Description
I have the following config:
docker {
name 'my-company/my-image'
tags project.version, 'latest'
dockerfile file('src/main/docker/Dockerfile')
dependsOn assemble
files jar
}
If I remove all images from my local machine other then the base image and then do:
$ gradle clean dockerPush
> Task :rest-service:dockerPush
The push refers to a repository [docker.io/my-company/my-image]
07cb7e265fa0: Preparing
762429e05518: Preparing
2be465c0fdf6: Preparing
5bef08742407: Preparing
2be465c0fdf6: Layer already exists
5bef08742407: Layer already exists
762429e05518: Layer already exists
07cb7e265fa0: Pushed
latest: digest: sha256:09ae39c3379061413cc450148fdb32baa2b07616fed5341df542595b3eb08b5f size: 1154
BUILD SUCCESSFUL in 10s
11 actionable tasks: 8 executed, 3 up-to-date
Notice however that only an image with the latest
tag is created, so naturally that was all that was pushed:
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my-company/my-image latest c588bc51ad2e 7 seconds ago 81.4MB
openjdk 8u131-jre-alpine e2f6fe2dacef 5 weeks ago 81.4MB
To continue the example, I remove the image just created as such:
$ docker rmi c588bc51ad2e
Untagged: my-company/my-image:latest
Untagged: my-company/my-image@sha256:09ae39c3379061413cc450148fdb32baa2b07616fed5341df542595b3eb08b5f
Deleted: sha256:c588bc51ad2e5019176b09377fa9b15caa92216f6540dfb880c914dbafb69e47
Deleted: sha256:63d4d33b985b3ef47804d7e25cea23d91f4bef88a69168da2b54721aadd5eb97
Deleted: sha256:595c32029464585e6871fc32d075f12e4a175bae5c9d016c9fa9e6fc8975168c
Deleted: sha256:46e42747ee2fd820e49b90be14f066bdee60d589ca914eaf937df5aec811e037
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
openjdk 8u131-jre-alpine e2f6fe2dacef 5 weeks ago 81.4MB
And then run dockerTag
first I get both tags and then dockerPush
both are then pushed as shown here:
$ gradle clean dockerTag
BUILD SUCCESSFUL in 2s
12 actionable tasks: 9 executed, 3 up-to-date
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
my-company/my-image 0.1.24 3b1e1562402f Less than a second ago 81.4MB
my-company/my-image latest 3b1e1562402f Less than a second ago 81.4MB
openjdk 8u131-jre-alpine e2f6fe2dacef 5 weeks ago 81.4MB
$ gradle dockerPush
> Task :rest-service:dockerPush
The push refers to a repository [docker.io/my-company/my-image]
e13e5448aea4: Preparing
762429e05518: Preparing
2be465c0fdf6: Preparing
5bef08742407: Preparing
2be465c0fdf6: Layer already exists
5bef08742407: Layer already exists
762429e05518: Layer already exists
e13e5448aea4: Pushed
0.1.24: digest: sha256:129ecb7f1ed98f799ea44849b5a72beb79064d15f8484e2dcb37344a105df9a7 size: 1154
e13e5448aea4: Preparing
762429e05518: Preparing
2be465c0fdf6: Preparing
5bef08742407: Preparing
2be465c0fdf6: Layer already exists
5bef08742407: Layer already exists
762429e05518: Layer already exists
e13e5448aea4: Layer already exists
latest: digest: sha256:129ecb7f1ed98f799ea44849b5a72beb79064d15f8484e2dcb37344a105df9a7 size: 1154
BUILD SUCCESSFUL in 8s
8 actionable tasks: 5 executed, 3 up-to-date
Is there a trick to getting dockerPush
to generate both tags, so that you can push them in one command?
joffrey-bion
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Issue actions
You canβt perform that action at this time.