diff options
author | EuAndreh <eu@euandre.org> | 2019-05-26 20:03:04 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2019-05-26 20:03:04 -0300 |
commit | 13238d26777bcd446459454bf5003b118415a35f (patch) | |
tree | 80c18d8e1a29ccd11ae1cb7fdb61fe158705d47e | |
parent | Use nix-shell --pure to run scripts (diff) | |
download | toph-13238d26777bcd446459454bf5003b118415a35f.tar.gz toph-13238d26777bcd446459454bf5003b118415a35f.tar.xz |
Use nix-shell shebang to run CI scripts
-rw-r--r-- | .build.yml | 9 | ||||
-rwxr-xr-x | ci-setup.sh | 3 | ||||
-rw-r--r-- | provision.sh | 3 |
3 files changed, 7 insertions, 8 deletions
@@ -13,11 +13,8 @@ secrets: - 7084b7c7-12be-4509-8927-81ba6eeb1fc0 tasks: - setup: | - cd vps/ - nix-shell --pure --run "bash -c ./ci-setup.sh" + ./vps/ci-setup.sh - tests: | - cd vps/ - nix-build -A test + nix-build -A test vps/ - deploy: | - cd vps/ - nix-shell --pure --run "bash -c ./provision.sh" + ./vps/provision.sh diff --git a/ci-setup.sh b/ci-setup.sh index b6af3c7..3a84639 100755 --- a/ci-setup.sh +++ b/ci-setup.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#!nix-shell -i bash set -Eeuo pipefail cd "${BASH_SOURCE%/*}/" diff --git a/provision.sh b/provision.sh index 6ea8f4e..b472c51 100644 --- a/provision.sh +++ b/provision.sh @@ -1,4 +1,5 @@ -#!/usr/bin/env bash +#!/usr/bin/env nix-shell +#!nix-shell -i bash set -Eeuo pipefail cd "${BASH_SOURCE%/*}/" |