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 11, 2024
1 parent cadb60e commit 2417f6e
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
- name: 'Use Node.js ${{matrix.node-version}}'
uses: actions/setup-node@v2

- name: 'Build'
run: |
npm i -g yarn \
&& yarn install \
&& yarn build \
- name: 'Install Oracle CLI'
run: |
curl -L -O https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh
Expand All @@ -36,15 +30,27 @@ jobs:
run: |
while ! nc -w5 -z ${{ secrets.OCI_INSTANCE_PUBLIC_IP }} 22; do
sleep 5
echo`` "SSH not available..."
echo "SSH not available..."
done; echo "SSH ready!"
- name: 'Build'
run: |
npm i -g yarn \
&& yarn install \
&& yarn build \
#
# - 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:
- 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: apps/*
target: app/

- name: 'Start app'
run: |
ls .

0 comments on commit 2417f6e

Please sign in to comment.