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

Update Workflow to Publish image, Deployment. Fix Codebase vulnerability #1644

Merged
merged 4 commits into from
Sep 14, 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
29 changes: 29 additions & 0 deletions .github/workflows/.ssh/known_hosts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[reports.globalhealthapp.net]:3220 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIACgwMS6u0tdPP+q8TKJoJHApgwWVPTN6yxjgNpCt0Uh
[reports.globalhealthapp.net]:3220 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRz8siwpz3lx7FiH9oqTvc3UU1tG0f1olpN336Ap1yetytAGl5wuWZJSeUrIMNSHd+/jATG2XLjEZy/EHZdaFVJ3M+8XHucGeEq6Zh+IEByIs5DDBe1SGDtI7mUTOouMV+sX2Xc52XLfQp7/iFRqyuiNkzPc56mXumuIJINzVGofoSFlsbESu4FkSrd6Q+TsVmTZ0xSGddJODl/N5RnxW38RZpc5KEJT6joqpMEFPOKt/DMjYVrraGVZoH+m3X7NjbCyh+23To6NXS9W/xqmZTIkkz3ulYSXYy/TDBE0E5p6+Fj78xri4OnVj1kcEWS0s2p/sZlcpNfjUQetXb5SXQq8WsG/pyDzck3z8P3X/i/xzJgZwFa25SnRlBA2Huw/1xYo0F01pP4KN42+aJ6zB0REUgDIYy/3yrzlF0y7BsI2UNdB+i7SEq3ualDvqiH+DXs08AVjKVn0W/bZ9LTWKnfgl4PEsj2eRi4fqy9NoS+5O0oPYVTsay6Hcl4aryyl8=
[reports.globalhealthapp.net]:3220 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJQ5Ao12jbjd8Id4p1Rtss9hnwwLTuGO6N1uFz+93doBcDS0/gavN3s8zLZKGauXfowBSr3eObcCDlE/crB14gg=
[reports.globalhealthapp.net]:3221 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOygbQjEgORAFfNfOc3buSNYFUZnw9vy+kdPYIkyKdK6
[reports.globalhealthapp.net]:3221 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDs9pkqOg1HdUxbHHCvAdtCvdyTNK/EAn4uqaa6VJDmjygzwAqhO4GpW/24QVQCmOm+RJifyu+Ig+C3+V0yQr9xFjyzibV+GmS7kL2qnYLj4IXu26yv5h23ElucZQRwj4VUhoham3qQmJm5u+OMmTov168bmYiYtjYVK1fVY9VoB4nC+a3ked9eGqvz5HfV2awwxW50z7O9rWcTh72iGEcBDZ1vhXpIBGofttKZTG3SlapvXYqDG6f3FQZccJBBqWyZj1CDV+JA/Rw4F9rHuQoGsA5eDIL+Y28J5/MH9GLZY+SEZDLm5t0Zk1geUJ4shZRMrJ8UzYZWzW9zO90rZJMka+v8fKLjBoPQWwEEAVaZRJqD0Iu7j8euoU/bAFtY0YVS10IdSg4QlHZZrib2WL4hNScTfBqoecUKbgJDRVWopMkI5icvkaXOm6CtnpRC9/MJLwegNnnjbFL0lWMmgf2d0aadMj9q+myaunrv9PMhU/fcBKAWEC5fbIDYY+f66DE=
[reports.globalhealthapp.net]:3221 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJRCJoA018J5IyP6aNhrCnngQVIRRelJAP37LcOwOLrarGCPS+V2k0PhHzWtgZ9mrVV1gNTddcAx+mCGbr+mTFI=
[histac-avn-s08.globalhealthapp.net]:2208 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJCAQR0lzwEtKWTyVUZAnVxhkO3B94am6nxe2f4n047
[reports.globalhealthapp.net]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[reports.globalhealthapp.net]:2202 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDG/mSO9Z7+jdk7n7b0LW3uWmQ5lJvJv/m9aIiDMbmX2+tjbNn434XWFLJmigUGKJwWvTZSecZqA3Ww+G/DHz3/ib+RzvVtqLz4HwQqPNo6rFKQzKoD1PZ7jLthmaZhoApKe3zsmyZ92QBxbdsjkY/Ua/saRPTx2abUw+Zj9kj/v989TdxuxFynyQlsY4ecqbZY/alCF6spXmr9T1XBgrJdGhayT/D1vyzQr6IRsg4UiXopO5pVLTnK/KCbq/YucVXw3DLAIlAnn8/UfziUJmNnIVxP7KDLCRjclo2lpbtZW613GnAeWJqtSfKnN4S3qYMxCE9ahFzakr3EdpdRT+NeTOxAGNWiLl3HnCf3VsLI/vwV8aWtTwcMs036f1K4Xcfc+0aQ6AOw+aQSPwkT7Y2jirBpFakb5zr7TB9GBpB9VSCLkgknrXazkysT3P+efdyt7/CchCd3YbymmWlfBjRxPyZVILCp7oaNIsj6wgmO2TbONmptQCawgOUWPtGiSmE=
[reports.globalhealthapp.net]:2202 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE0Xy+itrE63mbqAMhqC/QTlGWJTxs8ltdLEzoSk+7FIG4QPf+Avm0CHHg8H3y6hDsgDihvDzDlIxy0NvXG05g8=
[172.19.0.17]:2217 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILWM7opBoJrMayTHyMy8eRogs6IBf1Zh+dWZ7mBiFJ/4
[dhis-dev.globalhealthapp.net]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[172.19.0.11]:2311 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3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PAN9io/c1Lnc1wYTLoj/pV3wtADUdhNIqQG00/GcjOCKjhjoOljrpK/9dPdRjriK6PAXXUL3LSQhgLLMYuNPNw+P96AlKtm8avtjdcK/LHLnWon1kzG77EK/gIuunYXit7g2dQksSO58jgH1mcU9vkn2/BCPW0oIvVVuB+NPtnEXHi6bOLCDdWpR58tFlaUWOQtFnI7ETMseES1VsaA/5QL0=
[172.19.0.16]:2216 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOCD3ui0jyXn0RMPc1nXFEj+QvqdA0u/oE8SIddKS0gwTZkQh1Do+zdG5qz86oZnR5NzJs4JUWoZZRk7kRoUQFc=
[reports.globalhealthapp.net]:3222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGSAgFw/vkMoR7QsODIk1Ygiif5fkdSiWiIkdor+JEOg
[20.172.182.46]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[172.19.0.19]:2319 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMsUKygZW46c4jC3VK9LKnyjQawdGzd06OXDXcYe9kmp
[172.19.0.19]:2319 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3dmLr4v1gn3XrsQVEjgwfhfGDjySP2ReXd14prNz4ZHVGNuC2LhOPmKPyYaninGociWARR7TXSWf53OoNjmnA232A1Jtoy5ByUAcrNZjdAVg3wxqmbxKHUS4BVXA+h+hq0++Mf23uko+0gHytkK+YQc00b4o44p2evdznPWncfxyHbVsW6aRKjcxFKzSOaWSvResqOqSidYoJkX+ouDelMgMN/5ze8D+qDJrEnLWiaBwHIEOdzSW2WHyryLnFNthH7b4Xc4boUPZb4LUDx70jEFwFARK29e2/ne6pBRxSG9EI3YhM/haEIayJSh5/YgDgXubH5p3W1I2WNeIRBTagOO1vWeHo0QPmAwNUsqw04WT5U+EW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a2cE3sqE5HQRzbgVEbeyXc9ucUQDQVX2sQoMw5x8WmF1jhpTpbS2IXLXdc2jCS8E5MB/6v2ABF2o=
27 changes: 27 additions & 0 deletions .github/workflows/.ssh/known_hosts.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[reports.globalhealthapp.net]:3220 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIACgwMS6u0tdPP+q8TKJoJHApgwWVPTN6yxjgNpCt0Uh
[reports.globalhealthapp.net]:3220 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDRz8siwpz3lx7FiH9oqTvc3UU1tG0f1olpN336Ap1yetytAGl5wuWZJSeUrIMNSHd+/jATG2XLjEZy/EHZdaFVJ3M+8XHucGeEq6Zh+IEByIs5DDBe1SGDtI7mUTOouMV+sX2Xc52XLfQp7/iFRqyuiNkzPc56mXumuIJINzVGofoSFlsbESu4FkSrd6Q+TsVmTZ0xSGddJODl/N5RnxW38RZpc5KEJT6joqpMEFPOKt/DMjYVrraGVZoH+m3X7NjbCyh+23To6NXS9W/xqmZTIkkz3ulYSXYy/TDBE0E5p6+Fj78xri4OnVj1kcEWS0s2p/sZlcpNfjUQetXb5SXQq8WsG/pyDzck3z8P3X/i/xzJgZwFa25SnRlBA2Huw/1xYo0F01pP4KN42+aJ6zB0REUgDIYy/3yrzlF0y7BsI2UNdB+i7SEq3ualDvqiH+DXs08AVjKVn0W/bZ9LTWKnfgl4PEsj2eRi4fqy9NoS+5O0oPYVTsay6Hcl4aryyl8=
[reports.globalhealthapp.net]:3220 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJQ5Ao12jbjd8Id4p1Rtss9hnwwLTuGO6N1uFz+93doBcDS0/gavN3s8zLZKGauXfowBSr3eObcCDlE/crB14gg=
[reports.globalhealthapp.net]:3221 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOygbQjEgORAFfNfOc3buSNYFUZnw9vy+kdPYIkyKdK6
[reports.globalhealthapp.net]:3221 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDs9pkqOg1HdUxbHHCvAdtCvdyTNK/EAn4uqaa6VJDmjygzwAqhO4GpW/24QVQCmOm+RJifyu+Ig+C3+V0yQr9xFjyzibV+GmS7kL2qnYLj4IXu26yv5h23ElucZQRwj4VUhoham3qQmJm5u+OMmTov168bmYiYtjYVK1fVY9VoB4nC+a3ked9eGqvz5HfV2awwxW50z7O9rWcTh72iGEcBDZ1vhXpIBGofttKZTG3SlapvXYqDG6f3FQZccJBBqWyZj1CDV+JA/Rw4F9rHuQoGsA5eDIL+Y28J5/MH9GLZY+SEZDLm5t0Zk1geUJ4shZRMrJ8UzYZWzW9zO90rZJMka+v8fKLjBoPQWwEEAVaZRJqD0Iu7j8euoU/bAFtY0YVS10IdSg4QlHZZrib2WL4hNScTfBqoecUKbgJDRVWopMkI5icvkaXOm6CtnpRC9/MJLwegNnnjbFL0lWMmgf2d0aadMj9q+myaunrv9PMhU/fcBKAWEC5fbIDYY+f66DE=
[reports.globalhealthapp.net]:3221 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJRCJoA018J5IyP6aNhrCnngQVIRRelJAP37LcOwOLrarGCPS+V2k0PhHzWtgZ9mrVV1gNTddcAx+mCGbr+mTFI=
[histac-avn-s08.globalhealthapp.net]:2208 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJCAQR0lzwEtKWTyVUZAnVxhkO3B94am6nxe2f4n047
[reports.globalhealthapp.net]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[reports.globalhealthapp.net]:2202 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDG/mSO9Z7+jdk7n7b0LW3uWmQ5lJvJv/m9aIiDMbmX2+tjbNn434XWFLJmigUGKJwWvTZSecZqA3Ww+G/DHz3/ib+RzvVtqLz4HwQqPNo6rFKQzKoD1PZ7jLthmaZhoApKe3zsmyZ92QBxbdsjkY/Ua/saRPTx2abUw+Zj9kj/v989TdxuxFynyQlsY4ecqbZY/alCF6spXmr9T1XBgrJdGhayT/D1vyzQr6IRsg4UiXopO5pVLTnK/KCbq/YucVXw3DLAIlAnn8/UfziUJmNnIVxP7KDLCRjclo2lpbtZW613GnAeWJqtSfKnN4S3qYMxCE9ahFzakr3EdpdRT+NeTOxAGNWiLl3HnCf3VsLI/vwV8aWtTwcMs036f1K4Xcfc+0aQ6AOw+aQSPwkT7Y2jirBpFakb5zr7TB9GBpB9VSCLkgknrXazkysT3P+efdyt7/CchCd3YbymmWlfBjRxPyZVILCp7oaNIsj6wgmO2TbONmptQCawgOUWPtGiSmE=
[reports.globalhealthapp.net]:2202 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBE0Xy+itrE63mbqAMhqC/QTlGWJTxs8ltdLEzoSk+7FIG4QPf+Avm0CHHg8H3y6hDsgDihvDzDlIxy0NvXG05g8=
[172.19.0.17]:2217 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILWM7opBoJrMayTHyMy8eRogs6IBf1Zh+dWZ7mBiFJ/4
[dhis-dev.globalhealthapp.net]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[172.19.0.11]:2311 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL3dfvsZx+iuvPyjeKQ1bA8HaAZMs0QxaI4xkL6dNAbb
[172.19.0.11]:2311 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC0cY1VBZ74jcLn2mHEavUCXgbHJDxwU25JRbyTldlliOPabZ/VbktTjV2MYr5wBeA8vbrByuEXOcbqLy1aQL84rTj2UHi7GRBdap0HFxT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ETMseES1VsaA/5QL0=
[172.19.0.16]:2216 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOCD3ui0jyXn0RMPc1nXFEj+QvqdA0u/oE8SIddKS0gwTZkQh1Do+zdG5qz86oZnR5NzJs4JUWoZZRk7kRoUQFc=
[reports.globalhealthapp.net]:3222 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGSAgFw/vkMoR7QsODIk1Ygiif5fkdSiWiIkdor+JEOg
[20.172.182.46]:2202 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBgN67V7KXlsbtYZmvigm8Wdnrf34OOwgfMAXp8fK1DC
[172.19.0.19]:2319 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMsUKygZW46c4jC3VK9LKnyjQawdGzd06OXDXcYe9kmp
[172.19.0.19]:2319 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC3dmLr4v1gn3XrsQVEjgwfhfGDjySP2ReXd14prNz4ZHVGNuC2LhOPmKPyYaninGociWARR7TXSWf53OoNjmnA232A1Jtoy5ByUAcrNZjdAVg3wxqmbxKHUS4BVXA+h+hq0++Mf23uko+0gHytkK+YQc00b4o44p2evdznPWncfxyHbVsW6aRKjcxFKzSOaWSvResqOqSidYoJkX+ouDelMgMN/5ze8D+qDJrEnLWiaBwHIEOdzSW2WHyryLnFNthH7b4Xc4boUPZb4LUDx70jEFwFARK29e2/ne6pBRxSG9EI3YhM/haEIayJSh5/YgDgXubH5p3W1I2WNeIRBTagOO1vWeHo0QPmAwNUsqw04WT5U+EWbFH2EoYuIrHGjunHId9ZGAXkho23YJUjcK0cjZDx4Ar2E7DC54CjF1TezCuT6u8eFB2MByrIOF/dPmsU2bw0Wpcj/5sQn6bY3rHMlLA0rzRq+aTfaSkwO5GGR1ZYP8CMgUmM2y+Y++zeK08=
[172.19.0.19]:2319 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDjTnIhRbWWk/1RzlFtBr2UwuC4QVenCRj+/C+W6qqfr62fpo1zNeJ4vouUiCmEX7AAA4RetDnxkDmeDrsVtdKg=
[172.19.0.3]:2303 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFYaUTZZRIWq0WMmMaLH3hfPWKG0L5qwTi4Lk3wj0+l/
115 changes: 85 additions & 30 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: OHRI CI
name: OHRI CI -
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix this typo


on:
push:
Expand Down Expand Up @@ -128,42 +128,97 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

working:
runs-on: ubuntu-latest
docker_devserver_frontend:
runs-on: ubuntu-latest
needs: docker_setup

needs: pre_release
steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./frontend
file: ./frontend/Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ohri-dev-frontend:next,${{ secrets.DOCKERHUB_USERNAME }}/ohri-dev-frontend:ci_${{ github.run_number }}
cache-from: type=inline,ref=user/app:buildcache
cache-to: type=inline,ref=user/app:buildcache,mode=max

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

if: ${{ github.ref == 'refs/heads/working' }}
steps:
- name: Wait for 5 minutos - Let Images reflect on Docker Hub
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this one minutos to minutes

run: sleep 300
- name: Checkout repository
uses: actions/checkout@v3

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/working && /bin/bash update_microfrontends.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}
port: ${{ secrets.HISTAC_PORT }}
- name: Copy files to /home/runner/
run: |
ls -la -t
cp -r $GITHUB_WORKSPACE/.ssh/ /home/runner/

ohri_dev:
runs-on: ubuntu-latest
- name: List contents of /home/runner/
run: ls -la /home/runner/

needs: pre_release
- name: webfactory/ssh-agent
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.LL_SSH_PRIVATE_KEY }}

if: ${{ github.ref == 'refs/heads/dev' }}
- 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 [email protected] -p 2216 -J [email protected] -p 2202
ls -la -t && \
cd /opt && \
ls -la -t

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

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

steps:
- name: Download Artifacts
uses: actions/download-artifact@v3
- name: Compute Timestamp
run: echo "TIMESTAMP=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- uses: garygrossgarten/github-action-ssh@release
name: Run the Update MicroFronEnd Script
- name: Checkout code
uses: actions/checkout@v2

- name: webfactory/ssh-agent
uses: webfactory/ssh[email protected]

with:
command: cd /usr/share/tomcat/microfrontends/dev && /bin/bash update_microfrontends.sh
host: ${{ secrets.HISTAC_HOST }}
username: ${{ secrets.HISTAC_USERNAME }}
privateKey: ${{ secrets.HISTAC_KEY}}
ssh-private-key: ${{ secrets.LL_SSH_PRIVATE_KEY }}

port: ${{ secrets.HISTAC_PORT }}
- name: SSH to remote OHRI Dev server via jump host
run: |
ssh -p 2216 \
-o "UserKnownHostsFile=/dev/null" \
-o "StrictHostKeyChecking=no" \
-o "ProxyCommand=ssh -o StrictHostKeyChecking=no -W %h:%p [email protected] -p 2202" \
[email protected] "\
cd /opt && \
docker compose -f docker-compose-ohri-dev.yml pull && \
docker compose -f docker-compose-ohri-dev.yml stop && \
docker compose -f docker-compose-ohri-dev.yml up -d"

35 changes: 35 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# syntax=docker/dockerfile:1.3
FROM --platform=$BUILDPLATFORM node:18-alpine as dev

ARG APP_SHELL_VERSION=next

RUN mkdir -p /app
WORKDIR /app

COPY spa-build-config.json .

ARG CACHE_BUST
RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-build-config.json --target ./spa
RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa
COPY ohri-config.json ./spa/ohri-config.json
COPY ohri_logo_dark.svg ./spa/ohri_logo_dark.svg
COPY ohri_logo_light.svg ./spa/ohri_logo_light.svg

FROM nginx:1.23-alpine

RUN apk update && \
apk upgrade && \
# add more utils for sponge to support our startup script
apk add --no-cache moreutils

# clear any default files installed by nginx
RUN rm -rf /usr/share/nginx/html/*

COPY startup.sh /usr/local/bin/startup.sh
RUN chmod +x /usr/local/bin/startup.sh

COPY nginx.conf /etc/nginx/nginx.conf

COPY --from=dev /app/spa /usr/share/nginx/html

CMD ["/usr/local/bin/startup.sh"]
Loading