From 2d7977993bbe1750bb2bd914c44f6bca9eb6a7ca Mon Sep 17 00:00:00 2001 From: Felix Wiedmann Date: Tue, 10 Aug 2021 16:21:42 +0200 Subject: [PATCH 1/3] build(Dockerfile): move binary in /usr/local/bin to call `go-semantic-releaser`via $PATH in terminal directly --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6af2954..65808aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,8 @@ FROM alpine:3.10.2 WORKDIR /code -COPY ./build/go-semantic-release.linux_x86_64 . +COPY ./build/go-semantic-release.linux_x86_64 /usr/local/bin/go-semantic-release USER 1000 -ENTRYPOINT [ "./go-semantic-release.linux_x86_64" ] \ No newline at end of file +ENTRYPOINT [ "go-semantic-release" ] From 780a6dbc2e9e3a78d0807cf58f805aa2f349e805 Mon Sep 17 00:00:00 2001 From: Felix Wiedmann Date: Tue, 10 Aug 2021 16:28:47 +0200 Subject: [PATCH 2/3] docs(gitlab): add example gitlab-ci.yml --- README.md | 2 ++ examples/.gitlab-ci.yml | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 examples/.gitlab-ci.yml diff --git a/README.md b/README.md index af45ad4..91d3ff8 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,8 @@ gitlab: tagPrefix: "" ``` +You can find an example `.gitlab-ci.yml` in the [examples](examples/.gitlab-ci.yml) folder. + ##### Git only Only via https at the moment. You need write access to your git repository diff --git a/examples/.gitlab-ci.yml b/examples/.gitlab-ci.yml new file mode 100644 index 0000000..6699854 --- /dev/null +++ b/examples/.gitlab-ci.yml @@ -0,0 +1,11 @@ +stages: + - release + +release: + stage: release + image: + name: nightapes/go-semantic-release:latest + script: + - go-semantic-release next + only: + - master From f89150b698dd95e56896223415c7f397404cbb13 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 10 Aug 2021 21:00:20 +0200 Subject: [PATCH 3/3] fix(Dockerfile): move binary in /usr/local/bin to call `go-semantic-releaser` via $PATH in terminal directly and update alpine --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 65808aa..2debcff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.10.2 +FROM alpine:3.14 WORKDIR /code