Deploy to Dev3 #32
This file contains hidden or 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: Deploy to Dev3 | |
| on: | |
| workflow_run: | |
| workflows: | |
| - Build Backend | |
| - Build Certbot | |
| - Build Frontend | |
| - Build Gateway | |
| - Build Monitoring-init | |
| branches: [main] | |
| types: [completed] | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: Trigger Deploy to Dev3 | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} | |
| steps: | |
| - name: Trigger Bamboo Deploy | |
| uses: fjogeleit/http-request-action@v2 | |
| with: | |
| url: https://ci.openmrs.org/rest/api/latest/queue/O3-DD3 | |
| method: "POST" | |
| customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }' |