ripe-gigabyte-88964
09/26/2023, 6:26 PMpants publish
, I'm getting the following error message
An image does not exist locally with the tag: <http://myregistry.azurecr.io/myrepository|myregistry.azurecr.io/myrepository>
The push refers to repository [<http://myregistry.azurecr.io/myrepository|myregistry.azurecr.io/myrepository>]
It seems like it's looking for a tag that is actually registry + repository?curved-television-6568
09/26/2023, 6:28 PMcurved-television-6568
09/26/2023, 6:28 PMripe-gigabyte-88964
09/26/2023, 6:30 PMcurved-television-6568
09/26/2023, 6:31 PMcurved-television-6568
09/26/2023, 6:32 PMripe-gigabyte-88964
09/26/2023, 6:43 PMPANTS_DOCKER_REGISTRIES: |
{
"default": {
"address": "${{ inputs.registry }}",
"default": True,
"skip_push": False,
"extra_image_tags": ["${{ inputs.release_tag }}"]
}
}
I can probably move this into pants.toml
if necessary though would prefer to keep it in an environment variable because we currently have 3 different registries we need to push different images to but that number is going down to 1 soon. So once I eliminate the other 2 registries from the build process I'll just configure the remaining one in pants.toml.curved-television-6568
09/26/2023, 6:44 PMcurved-television-6568
09/26/2023, 6:44 PMripe-gigabyte-88964
09/26/2023, 6:46 PM{
"version": 1,
"image_id": "sha256:df364f656454bb36d6b8e08c86426c5c3fe4556f93aa86ba1addafea0d26e2c2",
"registries": [
{
"alias": "dagster",
"address": "<http://myregistry.azurecr.io/my-repo-name|myregistry.azurecr.io/my-repo-name>",
"repository": "my-project/my-subproject",
"tags": [
{
"template": "test",
"tag": "test",
"uses_local_alias": false,
"name": "<http://yregistry.azurecr.io/my-repo-name/my-project/my-subproject:test|yregistry.azurecr.io/my-repo-name/my-project/my-subproject:test>"
}
]
}
]
}
curved-television-6568
09/26/2023, 6:46 PMcurved-television-6568
09/26/2023, 6:47 PM<http://yregistry.azurecr.io/my-repo-name/my-project/my-subproject:test|yregistry.azurecr.io/my-repo-name/my-project/my-subproject:test>
which also should be the one it attempts to use during publish, is that not the case?ripe-gigabyte-88964
09/26/2023, 6:47 PM:test
curved-television-6568
09/26/2023, 6:48 PMcurved-television-6568
09/26/2023, 6:48 PM:test
come from your extra image tags?ripe-gigabyte-88964
09/26/2023, 6:48 PMripe-gigabyte-88964
09/26/2023, 6:48 PMcurved-television-6568
09/26/2023, 6:49 PMripe-gigabyte-88964
09/26/2023, 6:50 PMripe-gigabyte-88964
09/26/2023, 6:50 PMcurved-television-6568
09/26/2023, 6:51 PMcurved-television-6568
09/26/2023, 6:53 PMdocker_image
target as well?curved-television-6568
09/26/2023, 6:54 PMripe-gigabyte-88964
09/26/2023, 6:54 PMrepository
configured on the target, everything else comes from the env varripe-gigabyte-88964
09/26/2023, 6:55 PMimage_tags
on the target instead of extra_image_tags
ripe-gigabyte-88964
09/26/2023, 7:09 PMripe-gigabyte-88964
09/26/2023, 7:27 PMdocker image list
after pants package
I'm not getting anything backripe-gigabyte-88964
09/26/2023, 7:27 PMripe-gigabyte-88964
09/26/2023, 7:29 PMDocker image ID: <unknown>
ripe-gigabyte-88964
09/26/2023, 7:51 PMpants package
- maybe I need to install it before installing pants itself?ripe-gigabyte-88964
09/26/2023, 8:12 PMcurved-television-6568
09/26/2023, 8:12 PMmaybe I need to install it before installing pants itself?pants merely invokes
docker
cli, so I don’t think it matters what you have when installing pants.ripe-gigabyte-88964
09/26/2023, 8:13 PMsetup-docker-buildx
github action uses docker-container
driver by defaultripe-gigabyte-88964
09/26/2023, 8:13 PMdocker
ripe-gigabyte-88964
09/26/2023, 8:13 PMUnlikedriver, built images will not automatically appear indocker
and `build --load`needs to be used to achieve that.docker images
curved-television-6568
09/26/2023, 8:13 PMripe-gigabyte-88964
09/26/2023, 8:14 PMcurved-television-6568
09/26/2023, 8:14 PM