-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Truncate branch names to avoid breaking k8s deployments (#67)
* feature: Truncate branch names to avoid breaking k8s deployments * fix: Update install crystal in CI * fix: Update to newer crystal * fix: Update build and Dockerfile, use static * Fix Makefile * Some cleanups * Fix version * Simplify docker push step * Avoid sudo to run make * Fix $(VERSION) * Add again manual_approval and fix buildStatic
- Loading branch information
Showing
7 changed files
with
43 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,21 @@ | ||
FROM codacy/ci-base:2.0.0 AS builder | ||
FROM crystallang/crystal:1.6-alpine AS builder | ||
|
||
RUN apk add --update --no-cache --force-overwrite \ | ||
openssl openssl-dev crystal shards g++ gc-dev \ | ||
libc-dev libevent-dev libxml2-dev llvm llvm-dev \ | ||
llvm-static make pcre-dev readline-dev \ | ||
yaml-dev zlib-dev git | ||
RUN apk add --update --no-cache --force-overwrite git | ||
|
||
RUN git config --global user.email "[email protected]" && git config --global user.name "Codacy" | ||
RUN git config --global user.email "[email protected]" && git config --global user.name "Codacy" | ||
|
||
RUN mkdir -p /workspace | ||
|
||
WORKDIR /workspace | ||
COPY ./ /workspace | ||
|
||
ENV ALPINE=1 | ||
RUN make test buildStatic | ||
|
||
RUN make test build | ||
|
||
|
||
|
||
FROM codacy/ci-base:2.0.0 | ||
FROM alpine:3.15 | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN apk add --update --no-cache --force-overwrite gc-dev pcre-dev libevent-dev git | ||
RUN apk add --update --no-cache git | ||
|
||
COPY --from=builder /workspace/bin/git-version /bin | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters