Edit .onedev-buildspec.yml
Michael Kinder michael@foggymtndrifter.com
Thu, 31 Oct 2024 19:05:44 +0000
1 files changed,
1 insertions(+),
39 deletions(-)
jump to
M
.onedev-buildspec.yml
→
.onedev-buildspec.yml
@@ -1,39 +1,1 @@
-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+version: 36