fix(ci): use go 16 in dredd image

This commit is contained in:
Denis Gukov 2021-08-27 13:22:34 +05:00
parent e3f9b32abb
commit 804d0942dc

View File

@ -1,25 +1,29 @@
FROM apiaryio/dredd:13.0.0
FROM golang:1.16.3-alpine3.13 as golang
ENV SEMAPHORE_SERVICE=semaphore_ci \
SEMAPHORE_PORT=3000 \
MYSQL_SERVICE=mysql \
MYSQL_PORT=3306 \
PATH=/root/go/bin:${PATH}
RUN apk add --no-cache bash curl git go
RUN (cd /usr && curl -sL https://taskfile.dev/install.sh | sh)
RUN apk add --no-cache curl git
# We need the source and task to compile the hooks
COPY . /semaphore/
RUN (cd /usr && curl -sL https://taskfile.dev/install.sh | sh)
WORKDIR /semaphore
RUN task deps:tools && task deps:be && task compile:be && task compile:api:hooks
RUN task deps:tools
RUN task deps:be
RUN task compile:be
RUN task compile:api:hooks
FROM apiaryio/dredd:13.0.0 as dredd
RUN apk add --no-cache bash go git
RUN go get github.com/snikch/goodman/cmd/goodman
COPY --from=golang /semaphore /semaphore
WORKDIR /semaphore
COPY deployment/docker/ci/dredd/entrypoint /usr/local/bin
ENV SEMAPHORE_SERVICE=semaphore_ci \
SEMAPHORE_PORT=3000 \
MYSQL_SERVICE=mysql \
MYSQL_PORT=3306
ENTRYPOINT ["/usr/local/bin/entrypoint"]