logout
This commit is contained in:
parent
fa45bf65b8
commit
f1f3ee5779
@ -14,12 +14,14 @@ build:
|
|||||||
BUILDAH_FORMAT: docker
|
BUILDAH_FORMAT: docker
|
||||||
FQ_IMAGE_NAME: "$REGISTRY/$REGISTRY_USER/$CI_PROJECT_NAME"
|
FQ_IMAGE_NAME: "$REGISTRY/$REGISTRY_USER/$CI_PROJECT_NAME"
|
||||||
before_script:
|
before_script:
|
||||||
- echo "$REGISTRY_PASSWORD" | buildah login -u "$REGISTRY_USER" --password-stdin $REGISTRY
|
- buildah login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" "${REGISTRY}"
|
||||||
script:
|
script:
|
||||||
- buildah images
|
- buildah images
|
||||||
- buildah build -t $FQ_IMAGE_NAME -t $FQ_IMAGE_NAME:$CI_COMMIT_TAG
|
- buildah build -t $FQ_IMAGE_NAME -t $FQ_IMAGE_NAME:$CI_COMMIT_TAG
|
||||||
- buildah images
|
- buildah images
|
||||||
- buildah push -a $FQ_IMAGE_NAME
|
- buildah push -a $FQ_IMAGE_NAME
|
||||||
|
after_script:
|
||||||
|
- buildah logout
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user