fix(deployment): respect image tags.
This commit is contained in:
parent
08bfa08be4
commit
bd394a7141
12 changed files with 23 additions and 23 deletions
|
|
@ -14,11 +14,11 @@
|
||||||
shell: |
|
shell: |
|
||||||
kubectl delete -n app secret aws-registry || true
|
kubectl delete -n app secret aws-registry || true
|
||||||
kubectl create secret -n app docker-registry aws-registry \
|
kubectl create secret -n app docker-registry aws-registry \
|
||||||
--docker-server="{{ ecr_docker_registry_server }}" \
|
--docker-server="{{ docker_registry_url }}" \
|
||||||
--docker-username="{{ ecr_docker_username }}" \
|
--docker-username="{{ docker_registry_username }}" \
|
||||||
--docker-password="{{ ecr_docker_password }}" \
|
--docker-password="{{ docker_registry_password }}" \
|
||||||
--docker-email=no@email.local
|
--docker-email=no@email.local
|
||||||
when: ecr_docker_username|length != 0 and ecr_docker_password|length != 0
|
when: docker_registry_username|length != 0 and docker_registry_password|length != 0
|
||||||
|
|
||||||
# Creating helm override files.
|
# Creating helm override files.
|
||||||
- name: Creating override files
|
- name: Creating override files
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
- name: Checking mandatory variables
|
- name: Checking mandatory variables
|
||||||
fail:
|
fail:
|
||||||
msg: "Didn't find OpenReplay docker credentials."
|
msg: "Didn't find OpenReplay docker credentials."
|
||||||
when: kubeconfig_path|length == 0 or ecr_docker_registry_server|length == 0
|
when: kubeconfig_path|length == 0 or docker_registry_url|length == 0
|
||||||
- name: Generaing minio access key
|
- name: Generaing minio access key
|
||||||
block:
|
block:
|
||||||
- name: Generating minio access key
|
- name: Generating minio access key
|
||||||
|
|
@ -54,9 +54,9 @@
|
||||||
msg:
|
msg:
|
||||||
- Below variables are mandatory. Please make sure it is updated in vars.yaml
|
- Below variables are mandatory. Please make sure it is updated in vars.yaml
|
||||||
- kubeconfig_path
|
- kubeconfig_path
|
||||||
- ecr_docker_username
|
- docker_registry_username
|
||||||
- ecr_docker_password
|
- docker_registry_password
|
||||||
- ecr_docker_registry_server
|
- docker_registry_url
|
||||||
failed_when: true
|
failed_when: true
|
||||||
tags: pre-check
|
tags: pre-check
|
||||||
- name: Creating Nginx SSL certificate
|
- name: Creating Nginx SSL certificate
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@ env:
|
||||||
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@ env:
|
||||||
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@ image:
|
||||||
tag: {{ image_tag }}
|
tag: {{ image_tag }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,6 @@ env:
|
||||||
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
AWS_ACCESS_KEY_ID: "{{ minio_access_key }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
AWS_SECRET_ACCESS_KEY: "{{ minio_secret_key }}"
|
||||||
|
|
||||||
{% if not (ecr_docker_username is defined and ecr_docker_username and ecr_docker_password is defined and ecr_docker_password) %}
|
{% if not (docker_registry_username is defined and docker_registry_username and docker_registry_password is defined and docker_registry_password) %}
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,10 @@ kubeconfig_path: /home/rajeshr/.kube/config
|
||||||
###################
|
###################
|
||||||
|
|
||||||
# If you've private registry, please update the details here.
|
# If you've private registry, please update the details here.
|
||||||
ecr_docker_username: ""
|
docker_registry_username: ""
|
||||||
ecr_docker_password: ""
|
docker_registry_password: ""
|
||||||
ecr_docker_registry_server: "rg.fr-par.scw.cloud/foss"
|
docker_registry_url: "rg.fr-par.scw.cloud/foss"
|
||||||
image_tag: v1.0.0
|
image_tag: "latest"
|
||||||
|
|
||||||
# This is an optional field. If you want to use proper ssl, then it's mandatory
|
# This is an optional field. If you want to use proper ssl, then it's mandatory
|
||||||
# Using which domain name, you'll be accessing OpenReplay
|
# Using which domain name, you'll be accessing OpenReplay
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue