fix: Set correct NAME env var in kubernetes
This commit is contained in:
parent
b0ea5ea4c8
commit
11270cbd91
3 changed files with 6 additions and 8 deletions
|
@ -17,7 +17,7 @@ variables:
|
||||||
# parallel, in case the build passes.
|
# parallel, in case the build passes.
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
image: "elixir:1.10"
|
image: "elixir:1.10.4-alpine"
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- _build/
|
- _build/
|
||||||
|
@ -48,7 +48,9 @@ build_image_for_commit:
|
||||||
# if everything passes.
|
# if everything passes.
|
||||||
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
|
||||||
# Pull out the built _build/prod directory so we can cache it!
|
# 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
|
# If tests pass, tag the commit and update package versions
|
||||||
deploy_to_tags:
|
deploy_to_tags:
|
||||||
|
|
|
@ -41,9 +41,7 @@ spec:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: NAME
|
- name: NAME
|
||||||
valueFrom:
|
value: legendary-doc-site
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: POD_IP
|
- name: POD_IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|
|
@ -41,9 +41,7 @@ spec:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: NAME
|
- name: NAME
|
||||||
valueFrom:
|
value: legendary-doc-site
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: POD_IP
|
- name: POD_IP
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|
Loading…
Reference in a new issue