diff options
author | fcuny <franck@fcuny.net> | 2022-11-06 19:19:49 -0800 |
---|---|---|
committer | fcuny <franck@fcuny.net> | 2022-11-06 19:19:49 -0800 |
commit | c6c53b6934d8f09732addc012aa655dba11524c0 (patch) | |
tree | fe0ee9cf9404fa7363e435bb8ca469dbdfd15df9 | |
parent | ci: add drone's configuration to deploy the site (diff) | |
parent | fix(drone): specify the path to `awk' in the deployment script (diff) | |
download | fcuny.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.nix | 3 |
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" '' |