Skip to content

Commit

Permalink
ci: 🐛 fix ssh path & docker user back to root
Browse files Browse the repository at this point in the history
  • Loading branch information
jojobyte committed Oct 4, 2023
1 parent 96401c9 commit d642061
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ FROM alpine:edge
RUN apk add --no-cache --update rsync openssh-client openssl && \
rm -rf /var/cache/apk/*

RUN addgroup -S appgroup && adduser -S app -G appgroup

USER app

# Copy entrypoint
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
3 changes: 2 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
set -eu

# Set deploy key
SSH_PATH="$HOME/.ssh"
SSH_PATH="/gh-rsync/.ssh"
SSH_IDENTITY="$SSH_PATH/deploy_key"
SSH_CFG="$SSH_PATH/config"
SSH_CMDS=""

mkdir -p "$SSH_PATH"
chmod 700 "$SSH_PATH"

Expand Down

0 comments on commit d642061

Please sign in to comment.