Skip to content

Commit

Permalink
chore(ci): adding in push server
Browse files Browse the repository at this point in the history
  • Loading branch information
bassrock committed Aug 16, 2024
1 parent 0a21a04 commit da5d867
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/push-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Push Server
on:
pull_request:
paths:
- 'infrastructure/push-server/**'
- 'packages/**'
- 'servers/push-server/**'
- 'pnpm-lock.yaml'
- '.github/actions/**'
- '.github/workflows/push-server.yml'
- '.github/workflows/reuse-*.yml'
push:
branches:
- main
- dev

jobs:
test-integrations:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/reuse-test-integrations.yml
with:
scope: push-server
secrets: inherit

infrastructure:
uses: ./.github/workflows/reuse-infrastructure.yml
with:
scope: push-server-cdk
stack-output-path: infrastructure/push-server/cdktf.out/stacks/push-server
secrets: inherit

api:
uses: ./.github/workflows/reuse-build-and-push-image.yml
needs: [infrastructure]
with:
scope: push-server
app-path: servers/push-server
sentry-project: push-server
docker-repo-name-pattern: push-{0}-app
terraform-output: ${{needs.infrastructure.outputs.terraform-output}}
secrets: inherit

sentry:
if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main'
uses: ./.github/workflows/reuse-sentry-release.yml
needs: [api]
with:
sentry-project: push-server
sentry-environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }}
secrets: inherit
1 change: 1 addition & 0 deletions .github/workflows/status-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
- Instant Sync Events
- Parser GraphQL Wrapper
- Pocket Event Bridge
- Push Server
types: [ completed ]

jobs:
Expand Down

0 comments on commit da5d867

Please sign in to comment.