user and pass

This commit is contained in:
Nikola Kubiczek 2023-09-25 18:12:08 +02:00
parent 28ab9872c9
commit 6fd0187e5b
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB

View File

@ -12,28 +12,28 @@ build:
variables: variables:
STORAGE_DRIVER: vfs STORAGE_DRIVER: vfs
BUILDAH_FORMAT: docker BUILDAH_FORMAT: docker
FQ_IMAGE_NAME: "registry.yaemiku.dev/yaemiku/$CI_PROJECT_NAME" FQ_IMAGE_NAME: "$REGISTRY/yaemiku/$CI_PROJECT_NAME"
before_script: before_script:
- buildah login --authfile "$REGISTRY_AUTH" registry.yaemiku.dev - buildah login -u "$REGISTRY_USERNAME" -p "$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: after_script:
- buildah logout - buildah logout
rules: # rules:
- if: $CI_COMMIT_TAG # - if: $CI_COMMIT_TAG
deploy: deploy:
stage: deploy stage: deploy
extends: [.kube-context] extends: [.kube-context]
image: image:
name: bitnami/kubectl:latest name: bitnami/kubectl:latest
entrypoint: [""] entrypoint: [""]
script: script:
- ls - ls
- kubectl apply -f $CI_PROJECT_DIR/hamburger.yaml - kubectl apply -f $CI_PROJECT_DIR/hamburger.yaml
- kubectl get pods - kubectl get pods
rules: # rules:
- if: $CI_COMMIT_TAG # - if: $CI_COMMIT_TAG