-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
# Builder | ||
# https://steele.blue/tiny-github-actions/ | ||
FROM dyweb/go-dev:1.13.6 as builder | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
ARG PROJECT_ROOT=/go/src/github.com/dyweb/weekly | ||
|
||
ENV WEEKLY_GEN_VERSION=v0.3.5 | ||
WORKDIR $PROJECT_ROOT | ||
|
||
RUN curl -sSL https://github.com/dyweb/dy-weekly-generator/releases/download/$WEEKLY_GEN_VERSION/dy-weekly-generator-$WEEKLY_GEN_VERSION-x86_64-unknown-linux-gnu.tar.gz \ | ||
| tar -vxz -C /usr/bin | ||
COPY . $PROJECT_ROOT | ||
RUN cd scripts/weekly && go install . | ||
|
||
# Runner | ||
FROM ubuntu:18.04 | ||
LABEL maintainer="[email protected]" | ||
# NOTE: libssl is required by weekly-gen | ||
RUN apt update && apt install -y libssl1.0.0 | ||
|
||
WORKDIR /usr/bin | ||
|
||
COPY --from=builder /usr/bin/weekly-gen . | ||
COPY --from=builder /go/bin/weekly . | ||
|
||
ENTRYPOINT ["weekly"] | ||
CMD ["help"] |
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