mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-11 20:30:37 -05:00
15 lines
338 B
Bash
Executable File
15 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Travis CI specific build script
|
|
#
|
|
set -euo pipefail
|
|
|
|
./build
|
|
|
|
if [[ "$TRAVIS_BRANCH" = master && -z "$TRAVIS_PULL_REQUEST_BRANCH" ]]; then
|
|
./docker-login "$CI_REGISTRY" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD"
|
|
./push-all "$CI_REGISTRY_PREFIX" "$IMAGE_TAG"
|
|
else
|
|
echo "=== not pushing on non-master ==="
|
|
fi
|