File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed
.github/actions/run-tests Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,9 @@ FROM golang:1.16-buster as builder
33# Build dependencies
44RUN set -eux; \
55 apt-get update && \
6- apt-get install -y \
6+ apt-get install -y --no-install-recommends \
77 cmake \
88 curl \
9- gcc \
10- libc6-dev \
11- make \
12- pkg-config \
139 python3 \
1410 && apt-get clean \
1511 && apt-get autoremove --purge -y \
Original file line number Diff line number Diff line change @@ -7,21 +7,19 @@ WORKDIR /workspace
77# Build dependencies
88RUN set -eux; \
99 apt-get update && \
10- apt-get install -y \
10+ apt-get install -y --no-install-recommends \
1111 cmake \
1212 curl \
13- gcc \
14- libc6-dev \
15- make \
16- pkg-config \
1713 python3 \
1814 && apt-get clean \
1915 && apt-get autoremove --purge -y \
2016 && rm -rf /var/lib/apt/lists/*
2117
2218COPY hack/libgit2-static/CMakeLists.txt hack/libgit2-static/
23- COPY hack/libgit2-static/Makefile hack/libgit2-static/
24- RUN make -C hack/libgit2-static
19+ RUN mkdir -p hack/libgit2-static/build \
20+ && cd hack/libgit2-static/build \
21+ && cmake .. \
22+ && cmake --build .
2523
2624# copy api submodule
2725COPY api/ api/
@@ -50,7 +48,6 @@ RUN PKG_CONFIG_PATH="$PWD/hack/libgit2-static/build/external/lib/pkgconfig" \
5048 LD_LIBRARY_PATH="$PWD/hack/libgit2-static/build/external/lib/" \
5149 go build -o source-controller \
5250 -tags static,system_libgit2 \
53- -ldflags "-linkmode external -extldflags '-static' -s -w" \
5451 main.go
5552
5653FROM debian:buster-slim as controller
You can’t perform that action at this time.
0 commit comments