Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hello@hidde.co>
  • Loading branch information
hiddeco committed Sep 17, 2021
1 parent 6f97af1 commit 04ab5b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/actions/run-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,9 @@ FROM golang:1.16-buster as builder
# Build dependencies
RUN set -eux; \
apt-get update && \
apt-get install -y \
apt-get install -y --no-install-recommends \
cmake \
curl \
gcc \
libc6-dev \
make \
pkg-config \
python3 \
&& apt-get clean \
&& apt-get autoremove --purge -y \
Expand Down
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@ WORKDIR /workspace
# Build dependencies
RUN set -eux; \
apt-get update && \
apt-get install -y \
apt-get install -y --no-install-recommends \
cmake \
curl \
gcc \
libc6-dev \
make \
pkg-config \
python3 \
&& apt-get clean \
&& apt-get autoremove --purge -y \
&& rm -rf /var/lib/apt/lists/*

COPY hack/libgit2-static/CMakeLists.txt hack/libgit2-static/
COPY hack/libgit2-static/Makefile hack/libgit2-static/
RUN make -C hack/libgit2-static
RUN mkdir -p hack/libgit2-static/build \
&& cd hack/libgit2-static/build \
&& cmake .. \
&& cmake --build .

# copy api submodule
COPY api/ api/
Expand Down Expand Up @@ -50,7 +48,6 @@ RUN PKG_CONFIG_PATH="$PWD/hack/libgit2-static/build/external/lib/pkgconfig" \
LD_LIBRARY_PATH="$PWD/hack/libgit2-static/build/external/lib/" \
go build -o source-controller \
-tags static,system_libgit2 \
-ldflags "-linkmode external -extldflags '-static' -s -w" \
main.go

FROM debian:buster-slim as controller
Expand Down

0 comments on commit 04ab5b9

Please sign in to comment.