-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
20 lines (14 loc) · 828 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM alpine:latest
LABEL "com.github.actions.name"="GitHub Releases"
LABEL "com.github.actions.description"="Upload build artifacts to GitHub releases"
LABEL "com.github.actions.icon"="tag"
LABEL "com.github.actions.color"="black"
ENV GHR_FORK tcnksm/ghr
ENV GHR_VERSION 0.13.0
RUN apk add --no-cache bash curl xz zip coreutils
RUN sh -c "curl --silent -L https://github.com/${GHR_FORK}/releases/download/v${GHR_VERSION}/ghr_v${GHR_VERSION}_linux_amd64.tar.gz > ghr_v${GHR_VERSION}_linux_amd64.tar.gz" && \
sh -c "tar xvzf ghr_v${GHR_VERSION}_linux_amd64.tar.gz" && \
sh -c "mv ghr_v${GHR_VERSION}_linux_amd64/ghr /usr/local/bin/" && \
sh -c "rm -rf ghr_v${GHR_VERSION}_linux_amd64 ghr_v${GHR_VERSION}_linux_amd64.tar.gz"
COPY ghr-wrapper ghr-compress /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/ghr-wrapper"]