Add .gitea/workflows/staging.yaml
Michael Kinder michael@noreply.git.foggymtndrifter.com
Tue, 22 Oct 2024 13:45:16 -0400
1 files changed,
23 insertions(+),
0 deletions(-)
jump to
A
.gitea/workflows/staging.yaml
@@ -0,0 +1,23 @@
+name: Staging Deployment + +on: + push: + branches: + - 'staging' + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Deploy to SEELF + env: + SEELF_API_KEY: ${{ secrets.SEELF_API_KEY }} + run: | + curl -i -X POST \ + -H "Authorization:Bearer $SEELF_API_KEY" \ + -H "Content-Type: application/json" \ + -d "{ \"environment\":\"staging\",\"git\":{ \"branch\": \"${{ github.ref_name }}\" } }" \ + https://deploy.fmd.gg/api/v1/apps/2nnjlusmcYTFzgKHFxmGLzAtkAH/deployments