-
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.
* Changed directory structure to Crystal standard format * Changed Dockerfile to Alpine 3.15 * Updated CI/CD to use Crystal 1.3.2
- Loading branch information
1 parent
0dc5fe7
commit 48b28c3
Showing
19 changed files
with
50 additions
and
61 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,17 +1,16 @@ | ||
FROM crystallang/crystal:1.2.2-alpine AS build | ||
FROM alpine:3.15 AS build | ||
|
||
# hadolint ignore=DL3018 | ||
# RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories \ | ||
# && apk add --no-cache build-base crystal shards libressl-dev yaml-static zlib-static | ||
RUN apk add --no-cache build-base crystal shards libressl-dev yaml-static zlib-static | ||
|
||
WORKDIR /opt/app | ||
COPY . . | ||
|
||
RUN shards install --production --ignore-crystal-version \ | ||
&& shards build --release --no-debug --static | ||
|
||
FROM alpine:3.13 | ||
FROM alpine:3.15 | ||
|
||
COPY --from=build /opt/app/bin/werk /usr/local/bin/ | ||
|
||
CMD [ "werk" ] | ||
ENTRYPOINT [ "werk" ] |
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,6 +1,3 @@ | ||
require "spec" | ||
|
||
require "../src/config" | ||
require "../src/report" | ||
require "../src/jobs/*" | ||
require "../src/utils/*" | ||
require "../src/werk/*" |
This file was deleted.
Oops, something went wrong.
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,15 +1,19 @@ | ||
require "log" | ||
|
||
require "./application" | ||
|
||
begin | ||
Log.setup_from_env( | ||
default_sources: "werk.*", | ||
log_level_env: "WERK_LOG_LEVEL", | ||
) | ||
|
||
Werk::Application.run | ||
rescue ex : Exception | ||
puts "Error: #{ex.message}" | ||
exit(1) | ||
require "./werk/application" | ||
|
||
module Werk | ||
VERSION = "0.0.0" | ||
|
||
begin | ||
Log.setup_from_env( | ||
default_sources: "werk.*", | ||
log_level_env: "WERK_LOG_LEVEL", | ||
) | ||
|
||
Werk::Application.run | ||
rescue ex : Exception | ||
puts "Error: #{ex.message}" | ||
exit(1) | ||
end | ||
end |
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
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
File renamed without changes.
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
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