From 11270cbd915359f9bd164951a25adb38733bf23c Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Fri, 21 May 2021 15:22:19 -0500 Subject: [PATCH] fix: Set correct NAME env var in kubernetes --- .gitlab-ci.yml | 6 ++++-- infrastructure/kube.yaml | 4 +--- infrastructure_templates/kube.yaml.dot | 4 +--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d3aabb7..27812d1f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ variables: # parallel, in case the build passes. test: stage: test - image: "elixir:1.10" + image: "elixir:1.10.4-alpine" cache: paths: - _build/ @@ -48,7 +48,9 @@ build_image_for_commit: # if everything passes. - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA # Pull out the built _build/prod directory so we can cache it! - - docker cp `docker create $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA`:/root/app/_build/prod _build + - CONTAINER_HANDLE=`docker create $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA` + - docker cp $CONTAINER_HANDLE:/root/app/_build/prod _build + - docker cp $CONTAINER_HANDLE:/root/app/deps deps # If tests pass, tag the commit and update package versions deploy_to_tags: diff --git a/infrastructure/kube.yaml b/infrastructure/kube.yaml index 39a9a9a1..33f3c4fc 100644 --- a/infrastructure/kube.yaml +++ b/infrastructure/kube.yaml @@ -41,9 +41,7 @@ spec: fieldRef: fieldPath: metadata.namespace - name: NAME - valueFrom: - fieldRef: - fieldPath: metadata.name + value: legendary-doc-site - name: POD_IP valueFrom: fieldRef: diff --git a/infrastructure_templates/kube.yaml.dot b/infrastructure_templates/kube.yaml.dot index 2a314ebe..50c256d3 100644 --- a/infrastructure_templates/kube.yaml.dot +++ b/infrastructure_templates/kube.yaml.dot @@ -41,9 +41,7 @@ spec: fieldRef: fieldPath: metadata.namespace - name: NAME - valueFrom: - fieldRef: - fieldPath: metadata.name + value: legendary-doc-site - name: POD_IP valueFrom: fieldRef: