Fix version tagging
This commit is contained in:
parent
bd89a8b1fb
commit
06cd7899ad
2 changed files with 5 additions and 1 deletions
|
@ -5,7 +5,7 @@ build:signal-server:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker build -f signal-server.Dockerfile -t ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} .
|
- docker build -f signal-server.Dockerfile -t ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} .
|
||||||
- export VERSION=$(docker run ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} -v)
|
- export VERSION=$(docker run ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} version)
|
||||||
- docker tag ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_REF_SLUG}
|
- docker tag ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_REF_SLUG}
|
||||||
- docker tag ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} ${CI_REGISTRY_IMAGE}/signal-server:${VERSION}
|
- docker tag ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8} ${CI_REGISTRY_IMAGE}/signal-server:${VERSION}
|
||||||
- docker push ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8}
|
- docker push ${CI_REGISTRY_IMAGE}/signal-server:${CI_COMMIT_SHA:0:8}
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exu
|
set -exu
|
||||||
|
if [[ "$1" == "version" ]]; then
|
||||||
|
java -jar /usr/share/TextSecureServer.jar -v
|
||||||
|
exit
|
||||||
|
fi
|
||||||
java -jar /usr/share/TextSecureServer.jar abusedb migrate /etc/signal-server.yaml
|
java -jar /usr/share/TextSecureServer.jar abusedb migrate /etc/signal-server.yaml
|
||||||
java -jar /usr/share/TextSecureServer.jar accountdb migrate /etc/signal-server.yaml
|
java -jar /usr/share/TextSecureServer.jar accountdb migrate /etc/signal-server.yaml
|
||||||
java -jar /usr/share/TextSecureServer.jar messagedb migrate /etc/signal-server.yaml
|
java -jar /usr/share/TextSecureServer.jar messagedb migrate /etc/signal-server.yaml
|
||||||
|
|
Loading…
Reference in a new issue