gitlab-ci: move dockerpush into hack shell script
This commit is contained in:
parent
cb4100412a
commit
9934098c50
2 changed files with 12 additions and 2 deletions
|
@ -43,5 +43,4 @@ docker-push:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
tags:
|
tags:
|
||||||
- deployer
|
- deployer
|
||||||
script:
|
script: './hack/dockerpush.sh'
|
||||||
- 'bash -c "$(nix-build --no-out-link ./docker-images.nix)"'
|
|
||||||
|
|
11
hack/dockerpush.sh
Executable file
11
hack/dockerpush.sh
Executable 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)"
|
Loading…
Reference in a new issue