Skip to content

Commit b0e7a1b

Browse files
committed
fix: dealing with docker vs non-docker
1 parent 404e732 commit b0e7a1b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/nix-build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ jobs:
7070
--extra-conf "trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
7171
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
7272
cp ./docker/nix/build_nix.sh ./build_nix.sh
73-
sed -i '' 's/cd workspace//g' ./build_nix.sh
7473
sed -i '' '1s|^#!/bin/env bash|#!/usr/bin/env bash|' ./build_nix.sh
7574
chmod +x ./build_nix.sh
7675
./build_nix.sh

docker/nix/build_nix.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
set -eou pipefail
33

44
nix --version
5-
cd /workspace
5+
if [ -d "/workspace" ]; then
6+
cd /workspace
7+
fi
68
nix build .#psql_15/bin -o psql_15
79
nix flake check -L
810
nix copy --to s3://nix-postgres-artifacts?secret-key=nix-secret-key ./psql_15

0 commit comments

Comments
 (0)