Skip to content

Commit

Permalink
Remove wrong CI jobs
Browse files Browse the repository at this point in the history
This is to remove the 2 non used CI Jobs that fail. 
Currently the deployment is being down on distro.
  • Loading branch information
larslemos authored Aug 29, 2023
1 parent 38c0a7b commit a901e85
Showing 1 changed file with 1 addition and 111 deletions.
112 changes: 1 addition & 111 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,117 +166,7 @@ jobs:
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}

port: ${{ secrets.HISTAC_PORT }}

dev_namibia:
runs-on: ubuntu-latest

needs: pre_release

if: ${{ github.ref == 'refs/heads/dev' }}

steps:
- uses: garygrossgarten/github-action-ssh@release
name: Run the Update MicroFronEnd Script for Namibia
with:
command: who && which node && cd /opt/microfrontends && /bin/bash update_microfrontends.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}

port: ${{ secrets.HISTAC_NAMIBIA_PORT }}

ohri_dev_namibia:
runs-on: ubuntu-latest

needs: pre_release

if: ${{ github.ref == 'refs/heads/dev' }}

steps:
- uses: garygrossgarten/github-action-ssh@release
name: Run the Update MicroFronEnd Script for Namibia
with:
command: who && which node && cd /opt/frontend_modules && /bin/bash update_microfrontends.sh
host: ${{ secrets.HISTAC_DEV_NAMIBIA_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}

port: ${{ secrets.HISTAC_DEV_NAMIBIA_PORT }}

pre_demo:
runs-on: ubuntu-latest

needs: build

if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: yarn install --immutable
- run: yarn run ci:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

pre_demo_export_concepts:
runs-on: ubuntu-latest

needs: pre_demo

if: startsWith(github.ref, 'refs/tags/v')

steps:
- uses: garygrossgarten/github-action-ssh@release
name: Run iniz-exporters script to export concepts to csv file.
with:
command: cd /usr/share/tomcat/iniz-exporters/concepts && rm -f concepts.csv && /bin/bash run.sh -u ${{ secrets.HISTAC_DEV_DB_USER }} -p ${{ secrets.HISTAC_DEV_DB_PASSWORD }} -o concepts.csv openmrs_dev
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}
port: ${{ secrets.HISTAC_PORT }}

ohri_demo:
runs-on: ubuntu-latest

needs: pre_demo_export_concepts

if: startsWith(github.ref, 'refs/tags/v')

steps:
# Update the Microfrontends to reflect what we have in the Working branch
- uses: garygrossgarten/github-action-ssh@release
name: Run the Update MicroFronEnd Script
with:
command: cd /usr/share/tomcat/microfrontends/test && sh update_microfrontends.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}
port: ${{ secrets.HISTAC_PORT }}

ohri_namibia_demo:
runs-on: ubuntu-latest

needs: pre_demo_export_concepts

if: startsWith(github.ref, 'refs/tags/v')

steps:
# Update the Microfrontends to reflect what we have in the Working branch
- uses: garygrossgarten/github-action-ssh@release
name: Run the Update MicroFronEnd Script
with:
command: cd /usr/share/tomcat/microfrontends/test && sh update_microfrontends.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}
port: ${{ secrets.HISTAC_DEV_NAMIBIA_PORT }}
port: ${{ secrets.HISTAC_PORT }}

sandbox_demo:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a901e85

Please sign in to comment.