Update Article “2023-04-17-automatiser-la-publication-des-artefacts”
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
08f43d3fc1
commit
7a10f9d36d
1 changed files with 24 additions and 2 deletions
|
@ -134,6 +134,28 @@ Status: Downloaded newer image for registry.deuxfleurs.org/albatest:0.9
|
|||
registry.deuxfleurs.org/albatest:0.9
|
||||
```
|
||||
|
||||
## Mettre à jour un index des tags
|
||||
## Publier un conteneur sur un registre
|
||||
|
||||
Ici on partage le code de base avec la publication sur Garage, et ensuite, on utilise la logique de Crane.
|
||||
|
||||
```
|
||||
$ ./alba container push -t albatest:0.9 ./docker 'docker://docker.io/superboum/albatest:0.9'
|
||||
-- load docker archives --
|
||||
docker/linux.386.tar.gz -> [oci system image; os:linux, arch:386, path:/tmp/alba-oci2921914546/0]
|
||||
docker/linux.amd64.tar.gz -> [oci system image; os:linux, arch:amd64, path:/tmp/alba-oci2921914546/1]
|
||||
docker/linux.arm.tar.gz -> [oci system image; os:linux, arch:arm, path:/tmp/alba-oci2921914546/2]
|
||||
docker/linux.arm64.tar.gz -> [oci system image; os:linux, arch:arm64, path:/tmp/alba-oci2921914546/3]
|
||||
-- merge system images --
|
||||
-> oci-layout
|
||||
-> index.json
|
||||
/tmp/alba-oci2921914546/0/blobs/sha256 -> /tmp/alba-oci2921914546/multi/blobs/sha256 (3 items)
|
||||
/tmp/alba-oci2921914546/1/blobs/sha256 -> /tmp/alba-oci2921914546/multi/blobs/sha256 (3 items)
|
||||
/tmp/alba-oci2921914546/2/blobs/sha256 -> /tmp/alba-oci2921914546/multi/blobs/sha256 (3 items)
|
||||
/tmp/alba-oci2921914546/3/blobs/sha256 -> /tmp/alba-oci2921914546/multi/blobs/sha256 (3 items)
|
||||
--- push to registry ---
|
||||
✅ push succeeded
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
Dans les deux cas, il nous manque la mise à jour de la liste des tags : pour récupérer une ressource, il faut connaitre son tag à l'heure actuelle. C'est un problème que j'ai gardé pour la fin car ça nécessite d'éditer / recalculer un fichier.
|
||||
|
|
Loading…
Reference in a new issue