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.
|
||||
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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue