This commit is contained in:
Nikola Kubiczek 2023-09-08 21:56:30 +02:00
parent fa45bf65b8
commit f1f3ee5779
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB

View File

@ -14,12 +14,14 @@ build:
BUILDAH_FORMAT: docker
FQ_IMAGE_NAME: "$REGISTRY/$REGISTRY_USER/$CI_PROJECT_NAME"
before_script:
- echo "$REGISTRY_PASSWORD" | buildah login -u "$REGISTRY_USER" --password-stdin $REGISTRY
- buildah login --username "${REGISTRY_USERNAME}" --password "${REGISTRY_PASSWORD}" "${REGISTRY}"
script:
- buildah images
- buildah build -t $FQ_IMAGE_NAME -t $FQ_IMAGE_NAME:$CI_COMMIT_TAG
- buildah images
- buildah push -a $FQ_IMAGE_NAME
after_script:
- buildah logout
rules:
- if: $CI_COMMIT_TAG