Skip to content

Commit

Permalink
ci(api-node): deploy nightly (#22185)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao authored Jan 1, 2025
1 parent c8553c3 commit 945eb21
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 23 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Build
branches:
- main
schedule:
- cron: 0 11 * * *
- cron: 12 11 * * *

jobs:
detect-changes:
Expand Down Expand Up @@ -1034,21 +1034,3 @@ jobs:
with:
name: pgbackrest
path: pgbackrest

deploy-hm-api-node:
name: Deploy hm-api-node
needs: detect-changes
if: ${{ needs.detect-changes.outputs.api-node == 'true' || needs.detect-changes.outputs.web == 'true' }}
runs-on: ubuntu-24.04
environment:
name: production-web
url: https://www.hongbomiao.com
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Deploy to Render
env:
render_deploy_hook_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$render_deploy_hook_url"
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CodeQL

'on':
schedule:
- cron: 0 9 * * *
- cron: 28 9 * * *

jobs:
codeql-c-cpp:
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Deploy

'on':
push:
branches:
- main
schedule:
- cron: 9 11 * * *

jobs:
deploy-hm-api-node:
name: Deploy hm-api-node
runs-on: ubuntu-24.04
environment:
name: production
url: https://www.hongbomiao.com
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Deploy to Render
env:
render_deploy_hook_url: ${{ secrets.RENDER_DEPLOY_HOOK_URL }}
run: |
curl "$render_deploy_hook_url"
2 changes: 1 addition & 1 deletion .github/workflows/docker-prune.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker | Prune

'on':
schedule:
- cron: 0 12 * * *
- cron: 19 12 * * *

jobs:
prune:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release

'on':
schedule:
- cron: 0 13 * * 1
- cron: 33 11 * * 1

jobs:
# https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Test
branches:
- main
schedule:
- cron: 0 10 * * *
- cron: 23 10 * * *

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down

0 comments on commit 945eb21

Please sign in to comment.