Skip to content

Commit 150f4ce

Browse files
chore: update dockerfile
update libs to latests & support multiple destinations for prod build
1 parent 4a7845f commit 150f4ce

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ ENV LLVM_INSTALL_DIR "/usr/lib/llvm-${LLVM_VER}"
2424
ENV SENTRY_INSTALL_DIR="/usr/lib/sentry-sdk"
2525

2626
# Get Sentry
27-
ARG SENTRY_TAG=0.5.2
27+
ARG SENTRY_TAG=0.6.3
2828
RUN mkdir /sentry-sdk \
29-
&& cd /sentry-sdk \
30-
&& wget --no-verbose "https://github.com/getsentry/sentry-native/releases/download/${SENTRY_TAG}/sentry-native.zip" \
31-
&& unzip sentry-native.zip \
32-
&& cmake -B ./build \
33-
&& cmake --build ./build --parallel \
34-
&& cmake --install ./build --prefix "${SENTRY_INSTALL_DIR}"
29+
&& cd /sentry-sdk \
30+
&& wget --no-verbose "https://github.com/getsentry/sentry-native/releases/download/${SENTRY_TAG}/sentry-native.zip" \
31+
&& unzip sentry-native.zip \
32+
&& cmake -B ./build \
33+
&& cmake --build ./build --parallel \
34+
&& cmake --install ./build --prefix "${SENTRY_INSTALL_DIR}"
3535

3636
# Install spdlog
37-
RUN git clone --depth=1 https://github.com/gabime/spdlog.git \
37+
RUN git clone --depth=1 --branch v1.11.0 https://github.com/gabime/spdlog.git \
3838
&& cd spdlog \
3939
&& cmake -B build \
4040
&& cmake --build build --parallel \
@@ -62,4 +62,4 @@ RUN cargo b --release
6262
FROM ubuntu_llvm
6363

6464
RUN mkdir -p /toolbox
65-
COPY --from=rs_builder /code/target/release/cppcheck-deepsource /toolbox/
65+
COPY --from=rs_builder /code/target/release/cppcheck-deepsource /toolbox/

cloudbuild_depl.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ steps:
44
- name: 'gcr.io/kaniko-project/executor:v1.0.0'
55
args:
66
- --destination=us.gcr.io/deepsource-production/cppcheck-deepsource:$TAG_NAME
7+
- --destination=us.gcr.io/deepsource-production/cppcheck-deepsource:latest
78
- --dockerfile=Dockerfile
89
- --cache=false
910
- --snapshotMode=redo

0 commit comments

Comments
 (0)