diff --git a/.dockerignore b/.dockerignore index 5171c54..232c5ef 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,4 @@ node_modules -npm-debug.log \ No newline at end of file +npm-debug.log +target +src \ No newline at end of file diff --git a/.github/workflows/publish-to-nexus.yaml b/.github/workflows/publish-to-nexus.yaml new file mode 100644 index 0000000..31ce57a --- /dev/null +++ b/.github/workflows/publish-to-nexus.yaml @@ -0,0 +1,19 @@ +name: Validate and optionally publish (if pushed on main) + +on: + pull_request: + branches: [main] + push: + workflow_dispatch: + +jobs: + build-and-publish: + uses: mekomsolutions/mekom-github-workflow-maven/.github/workflows/build-publish-workflow.yml@main + with: + webhook-url: https://openmrs-cd.mekomsolutions.net/generic-webhook-trigger/invoke + secrets: + NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} + NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} + OCD3_USERNAME: ${{ secrets.OCD3_USERNAME }} + OCD3_PASSWORD: ${{ secrets.OCD3_PASSWORD }} + if: ${{ github.ref == 'refs/heads/main' }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6a7d6d8..4b80d4a 100644 --- a/.gitignore +++ b/.gitignore @@ -127,4 +127,22 @@ dist .yarn/unplugged .yarn/build-state.yml .yarn/install-state.gz -.pnp.* \ No newline at end of file +.pnp.* + +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties +# https://github.com/takari/maven-wrapper#usage-without-binary-jar +.mvn/wrapper/maven-wrapper.jar + +# Eclipse m2e generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath \ No newline at end of file diff --git a/.ocd3.yml b/.ocd3.yml new file mode 100644 index 0000000..262189a --- /dev/null +++ b/.ocd3.yml @@ -0,0 +1,5 @@ +version: 1 +build: + bash_commands: "exit 0" +deploy: + bash_commands: "exit 0" \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index ead2943..d9a1d90 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ services: maintenance: networks: - web - build: . + image: mekomsolutions/ozone-maintenance-page environment: - MESSAGE=${MESSAGE} - TITLE=${TITLE} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..59b0d31 --- /dev/null +++ b/pom.xml @@ -0,0 +1,144 @@ + + + 4.0.0 + com.ozonehis + maintenance + Ozone maintenance page + 1.0.0-SNAPSHOT + pom + + + Ozone HIS + https://www.ozone-his.com + + + ${project.build.directory}/${project.artifactId}-${project.version} + + + + Mekom Solutions + https://www.mekomsolutions.com + + + + + + + + + maven-antrun-plugin + 1.7 + + + + copy-docker-compose + package + + + + + + + + + + + + run + + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + package-distro-artifact + package + + single + + + false + + src/main/assembly/assembly.xml + + + + + + + + + + + mks-nexus-public + https://nexus.mekomsolutions.net/repository/maven-public/ + + + openmrs-repo + OpenMRS Nexus Repository + https://mavenrepo.openmrs.org/nexus/content/repositories/public + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots + + false + + + true + + + + + + openmrs-repo + OpenMRS Nexus Repository + https://mavenrepo.openmrs.org/nexus/content/repositories/public + + false + + + + openmrs-snapshots + OpenMRS Public Repository + https://mavenrepo.openmrs.org/snapshots + + true + + + false + + + + mks-nexus-public + https://nexus.mekomsolutions.net/repository/maven-public/ + + + mks-nexus-snapshots + https://nexus.mekomsolutions.net/repository/maven-snapshots/ + + true + + + + + + + Mekom Solutions Nexus repo for releases + mks-nexus-public-releases + https://nexus.mekomsolutions.net/repository/maven-releases + + + Mekom Solutions Nexus repo for snapshots + mks-nexus-public-snapshots + https://nexus.mekomsolutions.net/repository/maven-snapshots + + + + \ No newline at end of file diff --git a/src/main/assembly/assembly.xml b/src/main/assembly/assembly.xml new file mode 100644 index 0000000..0636116 --- /dev/null +++ b/src/main/assembly/assembly.xml @@ -0,0 +1,20 @@ + + + zip-distro-dir + + zip + + false + + + .. + ${project.build.directory}/${project.artifactId}-${project.version} + + + \ No newline at end of file