Add .onedev-buildspec.yml
Michael Kinder michael@foggymtndrifter.com
Thu, 31 Oct 2024 19:05:30 +0000
1 files changed,
39 insertions(+),
0 deletions(-)
jump to
A
.onedev-buildspec.yml
@@ -0,0 +1,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