-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and upload tar package on release
- Loading branch information
1 parent
54efd70
commit 7a9fdd6
Showing
2 changed files
with
29 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM 84codes/crystal:latest-alpine AS builder | ||
WORKDIR /usr/src/amqproxy | ||
COPY shard.yml shard.lock ./ | ||
RUN shards install --production | ||
COPY src/ src/ | ||
RUN shards build --production --release --static --debug | ||
COPY README.md LICENSE extras/amqproxy.service amqproxy/ | ||
COPY config/example.ini amqproxy/amqproxy.ini | ||
RUN mv bin/* amqproxy/ | ||
ARG TARGETARCH | ||
RUN tar zcvf amqproxy-$(shards version)_static-$TARGETARCH.tar.gz amqproxy/ | ||
|
||
FROM scratch | ||
COPY --from=builder /usr/src/amqproxy/*.tar.gz . |