From 2a38c164cd81063c1bd9361663ba5fba2ba5d57e Mon Sep 17 00:00:00 2001 From: KG Date: Sun, 10 Mar 2024 16:42:25 -0700 Subject: [PATCH] updated deploy workflow --- .github/workflows/deploy.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f2a1a7e..eb52aa7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: