OZ-668: Add Ability to run Ozone in a single and standalone (distro-embedded) Docker Compose file #206
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
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
release: | |
types: [published] | |
jobs: | |
cleanDisk: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
root-reserve-mb: 512 | |
swap-size-mb: 1024 | |
remove-dotnet: 'true' | |
- name: Build | |
run: | | |
echo "Free space:" | |
df -h | |
validate: | |
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main | |
with: | |
java-version: "8" | |
maven-phase: "install" | |
maven-args: "-Pvalidator" # Validate OpenMRS configs & build Docker images embedding the distro bins and configs | |
secrets: | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
release: | |
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }} | |
needs: validate | |
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main | |
with: | |
maven-args: "-Pbundled-docker" # Build Docker images embedding the distro bins and configs | |
secrets: | |
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }} | |
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} |