Skip to content

Commit

Permalink
Update docs-ci.yml - New server IP
Browse files Browse the repository at this point in the history
Updated ssh credentials and ssh user
  • Loading branch information
alaboso authored Jan 16, 2024
1 parent d5d8844 commit afdb2fc
Showing 1 changed file with 13 additions and 34 deletions.
47 changes: 13 additions & 34 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,45 +41,24 @@ jobs:
- name: Run build
run: pnpm build

# update_config:
# runs-on: ubuntu-latest
# needs: build
# if: ${{ github.ref == 'refs/heads/main' }}

# steps:
# - name: Checkout repo to make config folder local
# uses: actions/checkout@v3
# with:
# ref: main
# - run: ls -la .github/

# - name: Copy Branch main Import Map to remote
# uses: appleboy/[email protected]
# with:
# source: .github/deploy_docs.sh
# target: /usr/share/tomcat/microfrontends/ohri-docs
# host: ${{ secrets.HISTAC_HOST }}
# username: ${{ secrets.HISTAC_USERNAME }}
# key: ${{ secrets.HISTAC_OHRI_KEY}}
# port: ${{ secrets.HISTAC_PORT }}

docs_deployment:
runs-on: ubuntu-latest
needs: build
# needs: update_config
if: ${{ github.ref == 'refs/heads/main' }}

steps:
# Update the Microfrontends to reflect what we have in the working branch
- name: Compute Timestamp
run: echo "TIMESTAMP=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- uses: garygrossgarten/github-action-ssh@release
name: BackUp and Run the Update DOCS Site Script
- name: webfactory/ssh-agent
uses: webfactory/[email protected]

with:
command: cd /usr/share/tomcat/microfrontends/ohri-docs/.github && sh deploy_docs.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.OHRI_DOCS_USER }}
# username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.OHRI_DOCS_USER_KEY}}
# privateKey: ${{ secrets.HISTAC_KEY}}
port: ${{ secrets.HISTAC_PORT }}
ssh-private-key: ${{ secrets.HISTAC_OHRI_KEY }}

- name: SSH to remote OHRI Docs server via jump host
run: |
ssh -p 2308 \
-o "UserKnownHostsFile=/dev/null" \
-o "StrictHostKeyChecking=no" \
-o "ProxyCommand=ssh -o StrictHostKeyChecking=no -W %h:%p [email protected] -p 2202" \
[email protected] "\
cd /opt/build && sh deploy_docs.sh"

0 comments on commit afdb2fc

Please sign in to comment.