fix(Container publishing): Revert back to Container Registry not Registry image
This commit is contained in:
parent
adfbf9e353
commit
7bdeb9ba23
@ -8,10 +8,10 @@ Needs a build container on the path `image.tar`. Use one of the Container build
|
|||||||
.Variables
|
.Variables
|
||||||
|===
|
|===
|
||||||
|Name |Description | Default Value
|
|Name |Description | Default Value
|
||||||
| CONTAINER_REGISTRY_IMAGE | The address of the project’s Container Registry. | $CI_REGISTRY_IMAGE
|
| CONTAINER_REGISTRY | The address of the project’s Container Registry. | $CI_REGISTRY
|
||||||
| CONTAINER_REGISTRY_USER | the user that should be used | $CI_REGISTRY_USER
|
| CONTAINER_REGISTRY_USER | the user that should be used | $CI_REGISTRY_USER
|
||||||
| CONTAINER_REGISTRY_PASSWORD | the password for the remote registry | $CI_REGISTRY_PASSWORD
|
| CONTAINER_REGISTRY_PASSWORD | the password for the remote registry | $CI_REGISTRY_PASSWORD
|
||||||
| EXTRA_PATH | Extra path that should be between the registry path and the image tag | ""
|
| EXTRA_PATH | Extra path that should be between the registry path and the image tag. Has to start with a "/" | ""
|
||||||
| IMAGE_TAG | the Tag the image should be found on | Depends on the current path. Look at the rules of the Job.
|
| IMAGE_TAG | the Tag the image should be found on | Depends on the current path. Look at the rules of the Job.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
name: quay.io/containers/skopeo:v1.5.2
|
name: quay.io/containers/skopeo:v1.5.2
|
||||||
entrypoint: [ "" ]
|
entrypoint: [ "" ]
|
||||||
variables:
|
variables:
|
||||||
CONTAINER_REGISTRY: $CI_REGISTRY_IMAGE
|
CONTAINER_REGISTRY: $CI_REGISTRY
|
||||||
CONTAINER_REGISTRY_USER: $CI_REGISTRY_USER
|
CONTAINER_REGISTRY_USER: $CI_REGISTRY_USER
|
||||||
CONTAINER_REGISTRY_PASSWORD: $CI_REGISTRY_PASSWORD
|
CONTAINER_REGISTRY_PASSWORD: $CI_REGISTRY_PASSWORD
|
||||||
EXTRA_PATH: ""
|
EXTRA_PATH: ""
|
||||||
@ -23,4 +23,4 @@
|
|||||||
- when: never
|
- when: never
|
||||||
script:
|
script:
|
||||||
- skopeo login --username $CONTAINER_REGISTRY_USER --password $CONTAINER_REGISTRY_PASSWORD $CONTAINER_REGISTRY --tls-verify=false
|
- skopeo login --username $CONTAINER_REGISTRY_USER --password $CONTAINER_REGISTRY_PASSWORD $CONTAINER_REGISTRY --tls-verify=false
|
||||||
- skopeo copy "docker-archive:image.tar" "docker://${CONTAINER_REGISTRY}${EXTRA_PATH}:${IMAGE_TAG}" $EXTRA_ARGS --dest-tls-verify=false
|
- skopeo copy "docker-archive:image.tar" "docker://${CONTAINER_REGISTRY}${EXTRA_PATH}:${IMAGE_TAG}" $EXTRA_ARGS --dest-tls-verify=false
|
||||||
Loading…
Reference in New Issue
Block a user