From 9934098c501bf14079fd62b76018d42f9a41d495 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 4 Oct 2020 02:36:18 +0100 Subject: [PATCH] gitlab-ci: move dockerpush into hack shell script --- .gitlab-ci.yml | 3 +-- hack/dockerpush.sh | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 hack/dockerpush.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ab3f851d1..79e99297ca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -43,5 +43,4 @@ docker-push: stage: deploy tags: - deployer - script: - - 'bash -c "$(nix-build --no-out-link ./docker-images.nix)"' + script: './hack/dockerpush.sh' diff --git a/hack/dockerpush.sh b/hack/dockerpush.sh new file mode 100755 index 0000000000..6273275122 --- /dev/null +++ b/hack/dockerpush.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# SPDX-FileCopyrightText: 2020 Luke Granger-Brown +# +# SPDX-License-Identifier: Apache-2.0 + +set -euo pipefail + +./hack/populate_secrets.sh + +exec "$(nix-build --no-out-link ./docker-images.nix)"