all repos — website @ 60a266d7714bb94280fd8c15de5bddd94ddd760a

My official website.

Add .onedev-buildspec.yml
Michael Kinder michael@foggymtndrifter.com
Thu, 31 Oct 2024 19:05:30 +0000
commit

60a266d7714bb94280fd8c15de5bddd94ddd760a

parent

9316365496a63c8ae8762ca1790f8f1d7d06ded6

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