From 55e5ce3a662e4077c15a495f0097ff840587885c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Mon, 23 May 2022 15:19:46 +0200 Subject: [PATCH] Fix docker build and k8s svc --- .gitlab-ci.yml | 1 + k8s/senpy-deployment.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f634192..836324f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,6 +22,7 @@ docker: tags: - docker script: + - echo $CI_COMMIT_TAG > senpy/VERSION - sed "s/{{PYVERSION}}/$PYTHON_VERSION/" Dockerfile.template > Dockerfile - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"},\"https://index.docker.io/v1/\":{\"auth\":\"$HUB_AUTH\"}}}" > /kaniko/.docker/config.json # The skip-tls-verify flag is there because our registry certificate is self signed diff --git a/k8s/senpy-deployment.yaml b/k8s/senpy-deployment.yaml index 692f91b..acd5d5e 100644 --- a/k8s/senpy-deployment.yaml +++ b/k8s/senpy-deployment.yaml @@ -12,6 +12,7 @@ spec: metadata: labels: app: senpy-latest + role: senpy-latest spec: containers: - name: senpy-latest