Skip to content

Commit

Permalink
ci: updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-locussol committed Feb 8, 2024
1 parent 306d1a5 commit fbb1db5
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@ jobs:
- run: pnpm build
- run: pnpm test

startMaintenance:
name: Start Maintenance
runs-on: ubuntu-latest
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- run: |
curl "${{ secrets.MAINTENANCE_ENDPOINT }}" \
-sSf \
-H 'Accept: application/json' \
-H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
--data-raw '{"type":"start","token":"${{ secrets.MAINTENANCE_TOKEN }}"}' \
--compressed
# startMaintenance:
# name: Start Maintenance
# runs-on: ubuntu-latest
# needs: [build]
# if: github.ref == 'refs/heads/master'
# steps:
# - run: |
# curl "${{ secrets.MAINTENANCE_ENDPOINT }}" \
# -sSf \
# -H 'Accept: application/json' \
# -H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' \
# -H 'Connection: keep-alive' \
# -H 'Content-Type: application/json' \
# --data-raw '{"type":"start","token":"${{ secrets.MAINTENANCE_TOKEN }}"}' \
# --compressed

deploy:
name: Deploy
runs-on: ubuntu-latest
needs: [startMaintenance]
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- run: echo "${{ secrets.SSHKEY }}" > key.pem
Expand Down Expand Up @@ -115,18 +115,18 @@ jobs:
releaseDraft: false
prerelease: false

endMaintenance:
name: End Maintenance
runs-on: ubuntu-latest
needs: [release]
if: github.ref == 'refs/heads/master'
steps:
- run: |
curl "${{ secrets.MAINTENANCE_ENDPOINT }}" \
-sSf \
-H 'Accept: application/json' \
-H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
--data-raw '{"type":"end","token":"${{ secrets.MAINTENANCE_TOKEN }}"}' \
--compressed
# endMaintenance:
# name: End Maintenance
# runs-on: ubuntu-latest
# needs: [release]
# if: github.ref == 'refs/heads/master'
# steps:
# - run: |
# curl "${{ secrets.MAINTENANCE_ENDPOINT }}" \
# -sSf \
# -H 'Accept: application/json' \
# -H 'Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' \
# -H 'Connection: keep-alive' \
# -H 'Content-Type: application/json' \
# --data-raw '{"type":"end","token":"${{ secrets.MAINTENANCE_TOKEN }}"}' \
# --compressed

0 comments on commit fbb1db5

Please sign in to comment.