-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated ssh credentials and ssh user
- Loading branch information
Showing
1 changed file
with
13 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" |