We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2950bd6 commit 7a0d1f2Copy full SHA for 7a0d1f2
Dockerfile
@@ -1,7 +1,8 @@
1
FROM alpine
2
ARG VERSION
3
4
+ADD ./docker/entrypoint.sh /usr/local/bin/docker-entrypoint
5
RUN apk update && apk add --no-cache git ca-certificates && update-ca-certificates
6
COPY "./bin/semantic-release_v${VERSION}_linux_amd64" /usr/local/bin/semantic-release
7
-ENTRYPOINT ["semantic-release"]
8
+ENTRYPOINT ["docker-entrypoint"]
docker/entrypoint.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+set -e
+
+if [ "$GITLAB_CI" == "true" ]; then
+ # Gitlab CI environment detected, skipping entrypoint
+ exit 0
+fi
9
+if [ "$1" == "semantic-release" ]; then
10
+ # remove first argument
11
+ shift 1
12
13
14
+exec semantic-release "$@"
0 commit comments