We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9263849 commit 7c3eb7dCopy full SHA for 7c3eb7d
iko/install.sh
@@ -7,7 +7,7 @@ WRAPPER="$INSTALL_DIR/iko"
7
8
mkdir -p "$INSTALL_DIR"
9
10
-cat > "$WRAPPER" <<'SQL'
+cat > "$WRAPPER" <<'EOF'
11
#!/bin/sh
12
set -euo pipefail
13
@@ -16,13 +16,17 @@ set -euo pipefail
16
ENV_ARG=""
17
[ -f .env ] && ENV_ARG="--env-file .env"
18
19
+IKORC_ARG=""
20
+[ -f .ikorc ] && IKORC_ARG="-v ${PWD}/.ikorc:/home/.ikorc:ro"
21
+
22
docker run --rm -it \
23
$ENV_ARG \
24
+ $IKORC_ARG \
25
--network "${DOCKER_NETWORK:-bridge}" \
26
-v "${PWD}/migrations:/repo:rw" \
- -v "${PWD}/scripts:/scripts:ro" \
27
+ -v "${PWD}/scripts:/iko/scripts:ro" \
28
ghcr.io/explodinglabs/iko:0.1.0 "$@"
-SQL
29
+EOF
30
31
chmod +x "$WRAPPER"
32
0 commit comments