user and pass
This commit is contained in:
parent
28ab9872c9
commit
6fd0187e5b
@ -12,28 +12,28 @@ build:
|
||||
variables:
|
||||
STORAGE_DRIVER: vfs
|
||||
BUILDAH_FORMAT: docker
|
||||
FQ_IMAGE_NAME: "registry.yaemiku.dev/yaemiku/$CI_PROJECT_NAME"
|
||||
FQ_IMAGE_NAME: "$REGISTRY/yaemiku/$CI_PROJECT_NAME"
|
||||
before_script:
|
||||
- buildah login --authfile "$REGISTRY_AUTH" registry.yaemiku.dev
|
||||
- buildah login -u "$REGISTRY_USERNAME" -p "$REGISTRY_PASSWORD" "$REGISTRY"
|
||||
script:
|
||||
- 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 push -a $FQ_IMAGE_NAME
|
||||
after_script:
|
||||
- buildah logout
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_TAG
|
||||
|
||||
deploy:
|
||||
stage: deploy
|
||||
extends: [.kube-context]
|
||||
image:
|
||||
name: bitnami/kubectl:latest
|
||||
entrypoint: [""]
|
||||
entrypoint: [""]
|
||||
script:
|
||||
- ls
|
||||
- kubectl apply -f $CI_PROJECT_DIR/hamburger.yaml
|
||||
- kubectl get pods
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_TAG
|
||||
|
Loading…
Reference in New Issue
Block a user