From b6e1b6aaa53adaad53a5e900b573b0873942755c Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Tue, 3 Aug 2021 18:03:30 +0200 Subject: [PATCH] add github-action prototype workflow -For demo mode startup test -Manually started in actions tab --- .github/workflows/ccdocker_demo_startup.yml | 43 +++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ccdocker_demo_startup.yml diff --git a/.github/workflows/ccdocker_demo_startup.yml b/.github/workflows/ccdocker_demo_startup.yml new file mode 100644 index 0000000..4138ee9 --- /dev/null +++ b/.github/workflows/ccdocker_demo_startup.yml @@ -0,0 +1,43 @@ +# This is the workflow for testing cc-docker startup in demo mode +# This will be automatic on specified event, but is set to manual while experimenting with workflows + +name: ccdocker-demo-startup + +# Controls when the action will run. Workflow runs when manually triggered using the UI +on: + workflow_dispatch: + +jobs: + # This workflow contains a single job + demo-startup: + # The type of runner that the job will run on + runs-on: ubuntu-latest + # Set timeout + timeout-minutes: 10 + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Checkout latest cc-docker + uses: actions/checkout@v2 + + - name: Build containers + run: docker-compose -d -f "docker-compose.yml" build + + - name: Run containers + run: docker-compose -d -f "docker-compose.yml" up + + - name: Show containers + run: docker ps -a + + - name: Ping ClusterCockpit + run: ping -c 3 localhost:80 + + - name: Ping phpMyAdmin + run: ping -c 3 localhost:8080 + + - name: Ping InfluxDB 2.0 + run: ping -c 3 localhost:8086 + + - name: Stop containers + if: always() + run: docker-compose -f "docker-compose.yml" down