anchor.diff:              -u "$GITHUB_USERNAME" \
               -r "$GITHUB_REPONAME" \
               -b "$changes" \
  -            --replace "$version" \
  -            "postgrest-$version-linux-x64-static.tar.xz"
  +            --replace "$_arg_version" \
  +            "postgrest-$_arg_version-linux-x64-static.tar.xz"
           fi
         '';
   
  
positive.code:       {
          name = "postgrest-release-github";
          docs = "Push a new release to GitHub.";
          inRootDir = true;
        }
        ''
          version=$1
  
          if test "$version" = "nightly"
          then
            suffix=$(git show -s --format="%cd-%h" --date="format:%Y-%m-%d-%H-%M")
            tar cvJf "postgrest-nightly-$suffix-linux-x64-static.tar.xz" \
              -C ${postgrest}/bin postgrest
  
  
negative.code:             not the same as DOCKER_REPO because we use the
              https://hub.docker.com/u/postgrestbot account for uploading to dockerhub.
            '';
          args = [
            "ARG_USE_ENV([DOCKER_USER], [], [DockerHub user name])"
            "ARG_USE_ENV([DOCKER_PASS], [], [DockerHub password])"
          ];
        }
        ''
          # ARG_USE_ENV only adds defaults or docs for environment variables
          # We manually implement a required check here
          # See also: https://github.com/matejak/argbash/issues/80
          DOCKER_USER="''${DOCKER_USER:?DOCKER_USER is required}"
          DOCKER_PASS="''${DOCKER_PASS:?DOCKER_PASS is required}"
  
          docker login -u "$DOCKER_USER" -p "$DOCKER_PASS"
        '';
  
  