From 879956227a9fde7a211133ee119f48258711801c Mon Sep 17 00:00:00 2001 From: kaleeaswari Date: Fri, 11 Sep 2020 11:31:16 +0530 Subject: [PATCH] Revert "[Kaleeaswari] Deploying app to the environments" This reverts commit a9b473b064264ca7a4036f485c50ed57effa556c. --- .github/workflows/gitbhub_actions.yml | 51 --------------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/workflows/gitbhub_actions.yml diff --git a/.github/workflows/gitbhub_actions.yml b/.github/workflows/gitbhub_actions.yml deleted file mode 100644 index c9c83a71c0..0000000000 --- a/.github/workflows/gitbhub_actions.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: Openmrs-module-appointments - Frontend - Github actions CI/CD - -on: - push: - branches: [ stream3/master ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: define variables - run: | - PACKAGE_VERSION=0.0.${{ github.run_number }} - echo "::set-env name=PACKAGE_VERSION::$PACKAGE_VERSION" - echo "::set-env name=PACKAGE_FILENAME::openmrs_appointments_app.$PACKAGE_VERSION.zip" - echo "::set-env name=OCTOPUS_SERVER::https://${{ secrets.OCTOPUS_ORG }}.octopus.app/" - echo "::set-env name=OCTOPUS_ENVIROMENT::QA-DEMO" - - - name: Use Node.js 12.x - uses: actions/setup-node@v1 - with: - node-version: '12.x' - - - name: Build with Node - run: | - npm install - npm test - npm run build - - - name: Package - run: | - echo "PACKAGE_FILENAME '$PACKAGE_FILENAME'" - zip -r $PACKAGE_FILENAME dist/* - - - name: Install Octopus CLI - run: | - sudo apt update && sudo apt install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \ - curl -sSfL https://apt.octopus.com/public.key | sudo apt-key add - && \ - sudo sh -c "echo deb https://apt.octopus.com/ stable main > /etc/apt/sources.list.d/octopus.com.list" && \ - sudo apt update && sudo apt install octopuscli - - - name: Publish to octopus - run: | - echo "PACKAGE_FILENAME '$PACKAGE_FILENAME'" - octo push --server="$OCTOPUS_SERVER" --apiKey="${{ secrets.OCTOPUS_API_KEY }}" --space="${{ secrets.OCTOPUS_SPACE_URL_FRAGMENT }}" --package="$PACKAGE_FILENAME" - - - name: Create Release and Deploy - run: | - octo create-release --server="$OCTOPUS_SERVER" --apiKey="${{ secrets.OCTOPUS_API_KEY }}" --space="${{ secrets.OCTOPUS_SPACE_URL_FRAGMENT }}" --project="openmrs-module-appointments" --packageVersion="$PACKAGE_VERSION" --deployTo="$OCTOPUS_ENVIROMENT" \ No newline at end of file