mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
prepare for multi-CI
split things out so more can be shared between CIs
This commit is contained in:
14
.gitlab-ci.sh
Executable file
14
.gitlab-ci.sh
Executable 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
|
||||
Reference in New Issue
Block a user