-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
28 lines (21 loc) · 892 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM alpine:3.10
ENV CLI_VERSION=3.12.0
ENV DOWNLOAD_URL="https://github.com/sourcegraph/src-cli/releases/download/${CLI_VERSION}/src_linux_amd64"
RUN apk add --no-cache \
# Needed to install binary
curl \
# Needed by `src lsif upload` to populate defaults
git
RUN set -ex && \
curl -s -L "${DOWNLOAD_URL}" > /usr/bin/src && \
chmod +x /usr/bin/src
LABEL version="0.1.0"
LABEL repository="http://github.com/sourcegraph/lsif-upload-action"
LABEL homepage="http://github.com/sourcegraph/lsif-upload-action"
LABEL maintainer="Sourcegraph Support <support@sourcegraph.com>"
LABEL "com.github.actions.name"="Sourcegraph LSIF Uploader"
LABEL "com.github.actions.description"="Upload LSIF data to a Sourcegraph instance"
LABEL "com.github.actions.icon"="upload"
LABEL "com.github.actions.color"="purple"
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]