100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Use mvp tag for manager to not break it with broken builds
Michal Rutka4d5a0f2eaad8
diff --git a/.github/workflows/manager-mvp.yml b/.github/workflows/manager-mvp.ymlnew file mode 100644index 000000000..db6f0b025--- /dev/null+++ b/.github/workflows/manager-mvp.yml@@ -0,0 +1,123 @@+# This workflow will build a Java project with Gradle+# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle++name: CI/CD++on:++ # Allows you to run this workflow manually from the Actions tab+ workflow_dispatch:++env:+ PLATFORM: linux/amd64,linux/arm64++jobs:+ image_deployment:+ runs-on: ubuntu-latest+ needs: [build]++ steps:+ - uses: actions/checkout@v2+ - name: set up QEMU+ uses: docker/setup-qemu-action@v1+ with:+ platforms: all+ - name: install buildx+ id: buildx+ uses: docker/setup-buildx-action@v1+ with:+ version: latest+ install: true+ - name: available platforms+ run: echo ${{ steps.buildx.outputs.platforms }}+ - name: login to docker hub+ run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin+ - name: Download build artifacts+ uses: actions/download-artifact@v2+ with:+ name: dist-build+ - name: build and push images+ run: |+ docker build --push --platform $PLATFORM -t openremote/deployment:mvp deployment++ image_manager:+ runs-on: ubuntu-latest+ needs: [build]++ steps:+ - uses: actions/checkout@v2+ - name: set up QEMU+ uses: docker/setup-qemu-action@v1+ with:+ platforms: all+ - name: install buildx+ id: buildx+ uses: docker/setup-buildx-action@v1+ with:+ version: latest+ install: true+ - name: available platforms+ run: echo ${{ steps.buildx.outputs.platforms }}+ - name: login to docker hub+ run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin+ - name: Download build artifacts+ uses: actions/download-artifact@v2+ with:+ name: dist-build+ - name: build and push images+ run: |+ docker build --push --platform $PLATFORM -t openremote/manager:mvp manager/build/install/manager++ image_manager_swarm:+ runs-on: ubuntu-latest+ needs: [image_deployment, image_manager]++ steps:+ - uses: actions/checkout@v2+ - name: set up QEMU+ uses: docker/setup-qemu-action@v1+ with:+ platforms: all+ - name: install buildx+ id: buildx+ uses: docker/setup-buildx-action@v1+ with:+ version: latest+ install: true+ - name: available platforms+ run: echo ${{ steps.buildx.outputs.platforms }}+ - name: login to docker hub+ run: echo "${{ secrets.DOCKERHUB_PASSWORD }}" | docker login -u "${{ secrets.DOCKERHUB_USER }}" --password-stdin+ - name: Download build artifacts+ uses: actions/download-artifact@v2+ with:+ name: dist-build+ - name: build and push images+ run: |+ docker build --push --platform $PLATFORM -t openremote/manager-swarm:mvp -f manager/build/install/manager/swarm.Dockerfile manager/build/install/manager++ build:+ runs-on: ubuntu-latest++ steps:+ - uses: actions/checkout@v2+ - uses: n1hility/cancel-previous-runs@v2+ with:+ token: ${{ secrets.GITHUB_TOKEN }}+ - name: set up JDK 1.8+ uses: actions/setup-java@v1+ with:+ java-version: 1.8+ - name: grant execute permission for gradlew+ run: chmod +x gradlew+ - name: build with Gradle+ run: ./gradlew installDist+ - name: Share build artifacts+ uses: actions/upload-artifact@v2+ with:+ name: dist-build+ path: |+ manager/build+ deployment/build+ !dist/**/*.md+ retention-days: 1diff --git a/mvp/aws-cloudformation.template.yml b/mvp/aws-cloudformation.template.ymlindex 3380201fc..a14fa535f 100644--- a/mvp/aws-cloudformation.template.yml+++ b/mvp/aws-cloudformation.template.yml@@ -113,7 +113,7 @@ Resources:cd /home/ubuntu# Create volume for deployment (needed for SWARM due to concurency in compose-file)docker volume create openremote_deployment-data- docker run --rm -v openremote_deployment-data:/deployment openremote/deployment:latest+ docker run --rm -v openremote_deployment-data:/deployment openremote/deployment:mvpwget https://github.com/openremote/openremote/raw/master/mvp/mvp-docker-compose.ymldocker swarm initif [ ${HostName} ] && [ ${DomainName} ]diff --git a/mvp/mvp-docker-compose.yml b/mvp/mvp-docker-compose.ymlindex 2f20306ab..a78bd6646 100644--- a/mvp/mvp-docker-compose.yml+++ b/mvp/mvp-docker-compose.yml@@ -108,7 +108,7 @@ services:# configuration files which were baked into the managers image.manager:- image: openremote/manager:${DATE_TAG:-latest}+ image: openremote/manager:${DATE_TAG:-mvp}networks:- privatedepends_on: