Added support for building image based on tag.
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
michael 2020-05-28 12:24:58 -05:00
parent f4c44bb039
commit 90b64c2e68
2 changed files with 36 additions and 5 deletions

View file

@ -8,9 +8,12 @@ RUN apk add --no-cache \
make \
musl-dev
WORKDIR /usr/src
RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge
WORKDIR /usr/src/proton-bridge
RUN make build-nogui
ARG TAG
RUN git clone https://github.com/ProtonMail/proton-bridge.git proton-bridge \
&& cd proton-bridge \
&& if [ -n "$TAG" ]; then git checkout tags/$TAG; fi \
&& make build-nogui
# Create a container for the ProtonMail Bridge.
FROM alpine:edge