This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
refactor: New end to end pattern for api #3867
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and push API Docker image | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- apps/api/** | |
- packages/core/** | |
- packages/db/** | |
- packages/schemas/** | |
- packages/sync-workflows/** | |
- packages/types/** | |
- packages/utils/** | |
branches: | |
- main | |
pull_request: | |
paths: | |
- apps/api/** | |
- packages/core/** | |
- packages/db/** | |
- packages/schemas/** | |
- packages/sync-workflows/** | |
- packages/types/** | |
- packages/utils/** | |
concurrency: | |
group: ${{ github.repository }}-api-${{ github.event.number || github.head_ref || | |
github.sha }}-${{ github.workflow }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
build_and_push: | |
name: Build and push Docker image | |
uses: ./.github/workflows/docker_build_and_push.yml | |
if: github.event_name == 'push' | |
with: | |
workspace: api | |
image-name: api | |
depot-project: s2bgc6nj7c | |
secrets: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
STAGING_KUBECONFIG: ${{ secrets.STAGING_KUBECONFIG }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} |