gitlab-ci: move dockerpush into hack shell script

This commit is contained in:
Luke Granger-Brown 2020-10-04 02:36:18 +01:00
parent cb4100412a
commit 9934098c50
2 changed files with 12 additions and 2 deletions

View file

@ -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'

11
hack/dockerpush.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
set -euo pipefail
./hack/populate_secrets.sh
exec "$(nix-build --no-out-link ./docker-images.nix)"