Skip to content

Commit

Permalink
chore: Update docker image version to v4.14.0-4
Browse files Browse the repository at this point in the history
Signed-off-by: Jniklas2 <[email protected]>
  • Loading branch information
Jniklas2 committed Oct 20, 2024
1 parent 30e1d78 commit bc1bbd6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ outputs:
runs:
using: docker
# image: 'Dockerfile'
image: 'docker://ghcr.io/jniklas2/dnscontrol-action:v4.14.0-3'
image: 'docker://ghcr.io/jniklas2/dnscontrol-action:v4.14.0-4'
14 changes: 6 additions & 8 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ if [ "$ALLOW_FETCH" = true ]; then
ARGS+=(--allow-fetch)
fi

if !(printf '%s\0' "$@" | grep -Fxqz -- 'check'); then
if [ "$ENABLE_CONCURRENT" = true ]; then
ARGS+=("--cmode=concurrent")
elif [ "$ENABLE_CONCURRENT" = true ]; then
ARGS+=("--cmode=legacy")
fi
fi

ARGS+=(
"$@"
--config "$CONFIG_ABS_PATH"
Expand All @@ -42,6 +34,12 @@ ARGS+=(
# 'check' sub-command doesn't require credentials
if [ "$1" != "check" ]; then
ARGS+=(--creds "$CREDS_ABS_PATH")

if [ "$ENABLE_CONCURRENT" = true ]; then
ARGS+=(--cmode "concurrent")
elif [ "$ENABLE_CONCURRENT" = true ]; then
ARGS+=(--cmode "legacy")
fi
fi

OUTPUT=()
Expand Down

0 comments on commit bc1bbd6

Please sign in to comment.