Skip to content

Commit

Permalink
refactor: apply lf on checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleekr committed Sep 19, 2021
1 parent 05a9edf commit 3e06bb9
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 24 deletions.
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

0 comments on commit 3e06bb9

Please sign in to comment.