Skip to content

Commit

Permalink
Add Nimble Task Docker Build
Browse files Browse the repository at this point in the history
  • Loading branch information
theAkito committed Aug 17, 2023
1 parent fdbf31c commit 3263828
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions zoominvitr.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ task fbuild, "Build project.":
--remove-section=.note.gnu.build-id \
--remove-section=.note.ABI-tag
"""
task docker_build_prod, "Build Production Docker.":
exec &"""nim c \
--define:appVersion:"{buildVersion}" \
--define:appRevision:"{buildRevision}" \
--define:appDate:"{buildDate}" \
--define:danger \
--opt:speed \
--out:app \
src/zoominvitr && \
strip zoominvitr \
--strip-all \
--remove-section=.comment \
--remove-section=.note.gnu.gold-version \
--remove-section=.note \
--remove-section=.note.gnu.build-id \
--remove-section=.note.ABI-tag
"""
task dbuild, "Debug Build project.":
exec &"""nim c \
--define:appVersion:"{buildVersion}" \
Expand Down

0 comments on commit 3263828

Please sign in to comment.