Possibly fix building in a branch

This commit is contained in:
Finn 2021-07-09 00:39:24 -07:00
parent eae4dbc944
commit 460fef2f0e

View file

@ -23,7 +23,7 @@ lint:
- mkdir -p /go/src/gitlab.com/signald/signald-go
- cp -r * /go/src/gitlab.com/signald/signald-go
script:
- git checkout "${CI_COMMIT_BRANCH}"
- git checkout "${CI_COMMIT_BRANCH}" || true
- VERSION="$(git describe --abbrev=0 HEAD)-$(git rev-list $(git describe --abbrev=0 HEAD)..HEAD --count)-$(git rev-parse --short=8 HEAD)"
- echo "building ${VERSION}"
- cd /go/src/gitlab.com/signald/signald-go
@ -52,7 +52,7 @@ build:cross-compile:
- mkdir -p /go/src/gitlab.com/signald/signald-go
- cp -r * /go/src/gitlab.com/signald/signald-go
script:
- git checkout "${CI_COMMIT_BRANCH}"
- git checkout "${CI_COMMIT_BRANCH}" || true
- VERSION="$(git describe --abbrev=0 HEAD)-$(git rev-list $(git describe --abbrev=0 HEAD)..HEAD --count)-$(git rev-parse --short=8 HEAD)"
- echo "building ${VERSION}"
- cd /go/src/gitlab.com/signald/signald-go
@ -80,7 +80,7 @@ build:x86:deb:
- apt-get install -y ./*.deb && rm -vf *.deb
- "sed -i 's/^Architecture:.*/Architecture: amd64/g' debian/control"
script:
- git checkout "${CI_COMMIT_BRANCH}"
- git checkout "${CI_COMMIT_BRANCH}" || true
- go run ./cmd/signaldctl doc -o man
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
- ls *.1 > debian/manpages
@ -114,7 +114,7 @@ build:aarch64:deb:
- apt-get install -y ./*.deb && rm -vf *.deb
- "sed -i 's/^Architecture:.*/Architecture: arm64/g' debian/control"
script:
- git checkout "${CI_COMMIT_BRANCH}"
- git checkout "${CI_COMMIT_BRANCH}" || true
- go run ./cmd/signaldctl doc -o man
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
- ls *.1 > debian/manpages