about summary refs log tree commit diff
diff options
context:
space:
mode:
authorfcuny <franck@fcuny.net>2022-11-06 19:19:49 -0800
committerfcuny <franck@fcuny.net>2022-11-06 19:19:49 -0800
commitc6c53b6934d8f09732addc012aa655dba11524c0 (patch)
treefe0ee9cf9404fa7363e435bb8ca469dbdfd15df9
parentci: add drone's configuration to deploy the site (diff)
parentfix(drone): specify the path to `awk' in the deployment script (diff)
downloadfcuny.net-c6c53b6934d8f09732addc012aa655dba11524c0.tar.gz
Merge pull request 'fix(drone): specify the path to `awk' in the deployment script' (#1) from fcuny/drone-ci into main
Reviewed-on: https://git.fcuny.net/fcuny/fcuny.net/pulls/1
-rw-r--r--flake.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index 1821893..b9a6b62 100644
--- a/flake.nix
+++ b/flake.nix
@@ -44,8 +44,7 @@
             set -euxo pipefail
             export PATH="${pkgs.lib.makeBinPath [(pkgs.docker.override { clientOnly = true; }) pkgs.flyctl]}:$PATH"
             archive=${self.packages.x86_64-linux.container}
-            # load archive, drop all output except last line case of warnings), print image name
-            image=$(docker load < $archive | tail -n1 | awk '{ print $3; }')
+            image=$(docker load < $archive | tail -n1 | ${pkgs.gawk}/bin/awk '{ print $3; }')
             flyctl deploy --image $image --local-only
           '';
           hugo = pkgs.writeShellScriptBin "hugo" ''