Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: apply lf on checkout #328

Merged
merged 1 commit into from
Sep 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.php text eol=lf
*.phps text eol=lf
*.inc text eol=lf
*.js text eol=lf
*.css text eol=lf
*.ini text eol=lf
*.json text eol=lf
*.htm text eol=lf
*.html text eol=lf
*.xml text eol=lf
*.xslt text eol=lf
*.svg text eol=lf
*.txt text eol=lf
*.md text eol=lf
*.sh text eol=lf
CHANGELOG text eol=lf
README text eol=lf
RELEASENOTES text eol=lf

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf

# Denote all files that are truly binary and should not be modified.
*.acorn binary
*.png binary
*.jpg binary
*.jpeg binary
*.z binary
*.gif binary
*.jpa binary
*.jps binary
*.zip binary
*.dll binary
*.exe binary
*.jar binary
*.phar binary
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ to view the past changes.
- [ ] Non linear stop price and chase function - [#246](https://github.com/chrisleekr/binance-trading-bot/issues/246)
- [ ] Support STOP-LOSS configuration per grid trade for selling - [#261](https://github.com/chrisleekr/binance-trading-bot/issues/261)


## Donations

If you find this project helpful, feel free to make a small
Expand Down
46 changes: 23 additions & 23 deletions scripts/docker-build.ps1
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[CmdletBinding()]
param (
[Parameter(Position = 0)]
[ValidateSet("prod", "dev")]
[string]
$env = "prod"
)
$packageVersion = $(node -p "require('./package.json').version")
$gitHash = $(git rev-parse --short HEAD)
switch ($env) {
"prod" {
$nodeEnv = "production"
$target = "production-stage"
}
"dev" {
$nodeEnv = "development"
$target = "dev-stage"
}
}
docker build . --build-arg PACKAGE_VERSION=$packageVersion --build-arg GIT_HASH=$gitHash --build-arg NODE_ENV=$nodeEnv --target $target -t chrisleekr/binance-trading-bot:latest
[CmdletBinding()]
param (
[Parameter(Position = 0)]
[ValidateSet("prod", "dev")]
[string]
$env = "prod"
)

$packageVersion = $(node -p "require('./package.json').version")
$gitHash = $(git rev-parse --short HEAD)

switch ($env) {
"prod" {
$nodeEnv = "production"
$target = "production-stage"
}
"dev" {
$nodeEnv = "development"
$target = "dev-stage"
}
}

docker build . --build-arg PACKAGE_VERSION=$packageVersion --build-arg GIT_HASH=$gitHash --build-arg NODE_ENV=$nodeEnv --target $target -t chrisleekr/binance-trading-bot:latest