Skip to content

Commit

Permalink
vars
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Sep 7, 2024
1 parent 1fbdc6e commit 77cb845
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,6 @@ jobs:
env:
TZ: Australia/Melbourne
TERM: xterm-256color
# Directory to use for artifact deployments.
VORTEX_DEPLOY_ARTIFACT_SRC: /tmp/workspace/code
# Source code location for artifact deployments.
VORTEX_DEPLOY_ARTIFACT_ROOT: $GITHUB_WORKSPACE

steps:

Expand Down Expand Up @@ -352,6 +348,8 @@ jobs:
VORTEX_DEPLOY_BRANCH="${{ github.ref_name }}"
VORTEX_DEPLOY_PR="${{ github.event.number }}" \
VORTEX_DEPLOY_PR_HEAD="${{ github.sha }}" \
VORTEX_DEPLOY_ARTIFACT_SRC=/tmp/workspace/code \
VORTEX_DEPLOY_ARTIFACT_ROOT=${GITHUB_WORKSPACE} \
./scripts/vortex/deploy.sh
env:
VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE: ${{ vars.VORTEX_DEPLOY_ARTIFACT_GIT_REMOTE }}
Expand Down
8 changes: 2 additions & 6 deletions scripts/vortex/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@ note "Using SSH key file ${file}."
export "${file_var}=${file}"

if [ -z "${SSH_AGENT_PID:-}" ]; then
note "SSH_AGENT_PID is not set. Checking if SSH agent is running."
if ! ps aux | grep "[s]sh-agent" | awk '{print $2}' >/dev/null; then
note "Starting SSH agent."
eval "$(ssh-agent)"
fi
eval "$(ssh-agent)"
note "Starting SSH agent."
eval "$(ssh-agent)"
fi

if ssh-add -l | grep -q "${file}"; then
Expand Down

0 comments on commit 77cb845

Please sign in to comment.