Possibly fix building in a branch
This commit is contained in:
parent
eae4dbc944
commit
460fef2f0e
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ lint:
|
||||||
- mkdir -p /go/src/gitlab.com/signald/signald-go
|
- mkdir -p /go/src/gitlab.com/signald/signald-go
|
||||||
- cp -r * /go/src/gitlab.com/signald/signald-go
|
- cp -r * /go/src/gitlab.com/signald/signald-go
|
||||||
script:
|
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)"
|
- 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}"
|
- echo "building ${VERSION}"
|
||||||
- cd /go/src/gitlab.com/signald/signald-go
|
- cd /go/src/gitlab.com/signald/signald-go
|
||||||
|
@ -52,7 +52,7 @@ build:cross-compile:
|
||||||
- mkdir -p /go/src/gitlab.com/signald/signald-go
|
- mkdir -p /go/src/gitlab.com/signald/signald-go
|
||||||
- cp -r * /go/src/gitlab.com/signald/signald-go
|
- cp -r * /go/src/gitlab.com/signald/signald-go
|
||||||
script:
|
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)"
|
- 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}"
|
- echo "building ${VERSION}"
|
||||||
- cd /go/src/gitlab.com/signald/signald-go
|
- cd /go/src/gitlab.com/signald/signald-go
|
||||||
|
@ -80,7 +80,7 @@ build:x86:deb:
|
||||||
- apt-get install -y ./*.deb && rm -vf *.deb
|
- apt-get install -y ./*.deb && rm -vf *.deb
|
||||||
- "sed -i 's/^Architecture:.*/Architecture: amd64/g' debian/control"
|
- "sed -i 's/^Architecture:.*/Architecture: amd64/g' debian/control"
|
||||||
script:
|
script:
|
||||||
- git checkout "${CI_COMMIT_BRANCH}"
|
- git checkout "${CI_COMMIT_BRANCH}" || true
|
||||||
- go run ./cmd/signaldctl doc -o man
|
- go run ./cmd/signaldctl doc -o man
|
||||||
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
|
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
|
||||||
- ls *.1 > debian/manpages
|
- ls *.1 > debian/manpages
|
||||||
|
@ -114,7 +114,7 @@ build:aarch64:deb:
|
||||||
- apt-get install -y ./*.deb && rm -vf *.deb
|
- apt-get install -y ./*.deb && rm -vf *.deb
|
||||||
- "sed -i 's/^Architecture:.*/Architecture: arm64/g' debian/control"
|
- "sed -i 's/^Architecture:.*/Architecture: arm64/g' debian/control"
|
||||||
script:
|
script:
|
||||||
- git checkout "${CI_COMMIT_BRANCH}"
|
- git checkout "${CI_COMMIT_BRANCH}" || true
|
||||||
- go run ./cmd/signaldctl doc -o man
|
- go run ./cmd/signaldctl doc -o man
|
||||||
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
|
- go run ./cmd/signaldctl completion bash > debian/package.bash-completion
|
||||||
- ls *.1 > debian/manpages
|
- ls *.1 > debian/manpages
|
||||||
|
|
Loading…
Reference in a new issue