-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vars: fix
clever_base_env
by removing a variable if not necessary
The `CC_RUN_COMMAND` variable was defined in case we use haskell binary as entrypoints. However if the `clever_haskell_entry_point` variable is not defined we shouldn't define the `CC_RUN_COMMAND` env variable.
- Loading branch information
1 parent
13602ab
commit c99eb17
Showing
7 changed files
with
35 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{% for key, value in (clever_base_env | combine(clever_env)).items() %} | ||
{{ key }}="{{ value | tojson }}" | ||
{{ key }}="{{ value | to_json }}" | ||
{% endfor %} | ||
|
||
{%- if clever_haskell_entry_point %} | ||
{# Haskell only #} | ||
{# https://www.clever-cloud.com/doc/get-help/reference-environment-variables/#haskell #} | ||
CC_RUN_COMMAND="{{'~/.local/bin/' + clever_haskell_entry_point | to_json }}" | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
binary="${0/*\/}" | ||
fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0" | ||
|
||
if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then | ||
echo "1.6.3" | ||
elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then | ||
echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${fakeCommit} Git" | ||
elif [ "${binary}" = "git" ]; then | ||
echo "${fakeCommit}" | ||
else | ||
echo "${binary} called with arguments: ${*}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
localhost | ||
localhost ansible_connection=local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters