.onedev-buildspec.yml (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
version: 36 jobs: - job: name: Production Deployment steps: - checkout: {} - run: name: Deploy to SEELF environment: SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} command: | curl -i -X POST \ -H "Authorization:Bearer $SEELF_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"environment\":\"production\",\"git\":{ \"branch\": \"${ONDEDEV_BRANCH}\" } }" \ https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments triggers: - push: branches: - main - job: name: Staging Deployment steps: - checkout: {} - run: name: Deploy to SEELF environment: SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} command: | curl -i -X POST \ -H "Authorization:Bearer $SEELF_API_KEY" \ -H "Content-Type: application/json" \ -d "{ \"environment\":\"staging\",\"git\":{ \"branch\": \"${ONDEDEV_BRANCH}\" } }" \ https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments triggers: - push: branches: - staging |