prepare for multi-CI

split things out so more can be shared between CIs
This commit is contained in:
zimbatm 2019-02-06 11:56:31 +01:00
parent 7a8122c5f4
commit 6b517528ee
No known key found for this signature in database
GPG key ID: 71BAF6D40C1D63D7
7 changed files with 53 additions and 45 deletions

14
.gitlab-ci.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# Gitlab CI specific build script.
#
set -euo pipefail
./build
if [[ "$CI_COMMIT_REF_NAME" = master ]]; then
./docker-login "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD"
./push-all "$CI_REGISTRY_IMAGE" "$IMAGE_TAG"
else
echo "=== not pushing on non-master ==="
fi