all repos — website @ 4e21924a6fa973191072b25600fb182b9605b426

My official website.

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

4e21924a6fa973191072b25600fb182b9605b426

parent

617d7da4d60c0dbdee2e9219e57b760f1d177cd8

1 files changed, 52 insertions(+), 0 deletions(-)

jump to
A .onedev-buildspec.yml

@@ -0,0 +1,52 @@

+version: 36 +jobs: +- name: Production Deployment + steps: + - !CheckoutStep + name: Checkout Code + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Deploy to SEELF + runInContainer: true + image: ubuntu:latest + interpreter: !DefaultInterpreter + commands: | + curl -i -X POST -H "Authorization: Bearer @secret:SEELF_API_KEY@" -H "Content-Type: application/json" -d "{ \"environment\":\"production\",\"git\":{ \"branch\": \"@ref@\" } }" https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: main + projects: michael/website + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 14400 +- name: Staging Deployment + steps: + - !CheckoutStep + name: Checkout Code + cloneCredential: !DefaultCredential {} + withLfs: false + withSubmodules: false + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + - !CommandStep + name: Deploy to SEELF + runInContainer: true + image: ubuntu:latest + interpreter: !DefaultInterpreter + commands: | + curl -i -X POST -H "Authorization: Bearer @secret:SEELF_API_KEY@" -H "Content-Type: application/json" -d "{ \"environment\":\"staging\",\"git\":{ \"branch\": \"@ref@\" } }" https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments + useTTY: true + condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL + triggers: + - !BranchUpdateTrigger + branches: staging + projects: michael/website + retryCondition: never + maxRetries: 3 + retryDelay: 30 + timeout: 14400