Skip to content

Commit

Permalink
updated deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
perennialAutodidact committed Mar 10, 2024
1 parent 2c817b1 commit 2a38c16
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,31 @@ jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: 'Build'
run: |
npm i -g yarn && yarn build \
ls .
- name: 'Install Oracle CLI'
run: |
curl -L -O https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh
chmod +x install.sh
./install.sh --accept-all-defaults
exec -l $SHELL
# - name: 'Check existing instance'
# run : |
# echo "oci compute instance list \
# --lifecycle-state RUNNING \
# --compartment-id ${{secrets.VM_COMPARTMENT_ID}} \
# --display-name memory-snap \
# --raw-output \
# "
- name: 'Wait for SSH'
run: |
while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do
sleep 5
echo "SSH not available..."
sleep 5
echo`` "SSH not available..."
done; echo "SSH ready!"
#
# - name: 'Upload app files'
# uses: applyboy/scp-action@master
# with:
# host: ${{secrets.OCI_INSTANCE_PUBLIC_IP}}
# username: ocp
# key: ${{secrets.OCI_SSH_PUB_KEY}}
# source:


0 comments on commit 2a38c16

Please sign in to comment.