Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev -> working #104

Merged
merged 2 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 4 additions & 40 deletions .github/workflows/ohri-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,53 +115,17 @@ jobs:
cache-to: type=gha,mode=max
- name: Save image digest
run: echo "::set-output name=image::${{ steps.build-and-push.output.digest }}"

dev_server_status:
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
needs: docker_staging_backend

steps:
- name: Wait for 5 minutos - Let Images reflect on Docker Hub
run: sleep 300
- name: Checkout repository
uses: actions/checkout@v3

- name: Copy files to /home/runner/
run: |
ls -la -t
cp -r $GITHUB_WORKSPACE/.github/.ssh/ /home/runner/

- name: List contents of /home/runner/
run: ls -la /home/runner/

- name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.OHRI_SSH_PRIVATE_KEY }}

- name: Check SSH to remote OHRI Dev status
run: |
ssh-keygen -R 172.19.0.16

dev_server_connection_dev:
runs-on: ubuntu-latest
needs: dev_server_status
steps:
- name: SSH to remote OHRI Dev server
run: |
ssh -o StrictHostKeyChecking=no -T ohri@172.19.0.16 -p 2216 -J ohri@20.172.182.46 -p 2202
ls -la -t && \
cd /opt && \
ls -la -t

dev_deploy:
runs-on: ubuntu-latest
needs: dev_server_status
needs: docker_staging_backend

if: (github.event_name == 'push' || github.event.pull_request.merged)

steps:
- name: Wait for 3 minutes - Let Images reflect on Docker Hub
run: sleep 180

- name: Checkout code
uses: actions/checkout@v2

Expand Down
3 changes: 1 addition & 2 deletions distro/configuration/ampathforms/covid_lab_order_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,7 @@
}
],
"processor": "EncounterFormProcessor",
"uuid": "9fd9169c-7a10-3145-b7e2-530a6f1f250d",
"encounterType": "a77d3e7f-5c8f-4074-a207-77a70e197b0c",
"uuid": "xxxx",
"encounter": "COVID Lab Encounter",
"referencedForms": [],
"allowUnspecifiedAll": true
Expand Down
3 changes: 1 addition & 2 deletions distro/configuration/ampathforms/pmtct_antenatal_v1.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1115,9 +1115,8 @@
}
],
"processor":"EncounterFormProcessor",
"uuid":"12de5bc5-352e-4faf-9961-a2125085a75c",
"uuid":"xxxx",
"referencedForms":[],
"encounterType":"677d1a80-dbbe-4399-be34-aa7f54f11405",
"postSubmissionActions": ["PTrackerSubmissionAction", "ArtSubmissionAction"],
"allowUnspecifiedAll":true,
"formOptions": {
Expand Down
Loading