Nixify CircleCI setup (#1535)

* package ghr
* add nix-based release scripts
* refactor CI based on nix tests and release scripts
* update stack version in circleci
* update makefile
* remove docker directory
* add Docker Hub description
* add README on docker
This commit is contained in:
Remo Rechkemmer
2020-05-25 11:27:35 -05:00
committed by GitHub
parent d4aba5cb08
commit 08186ea51c
20 changed files with 426 additions and 484 deletions
+8 -6
View File
@@ -34,6 +34,7 @@ let
allOverlays.postgresql-default
allOverlays.postgresql-legacy
allOverlays.gitignore
allOverlays.ghr
(allOverlays.haskell-packages { inherit compiler; })
];
@@ -94,12 +95,6 @@ rec {
docker =
pkgs.callPackage nix/docker { postgrest = postgrestStatic; };
# Script `postgrest-docker-load` that loads the images built with Nix into
# Docker, using `docker load -i` under the hood. Referenced here from the top
# level so that it gets built by default.
dockerLoad =
docker.load;
# Environment in which PostgREST can be built with cabal, useful e.g. for
# defining a shell for `nix-shell`.
env =
@@ -119,4 +114,11 @@ rec {
# Development tools, including linting and styling scripts.
devtools =
pkgs.callPackage nix/devtools.nix { };
# Scripts for publishing new releases.
release =
pkgs.callPackage nix/release {
inherit docker;
postgrest = postgrestStatic;
};
}