skip building docker images in test ci

This commit is contained in:
Hongbo Wu
2024-06-19 11:08:30 +08:00
parent b0326b302f
commit 6c102b02ac
3 changed files with 20 additions and 27 deletions

View File

@ -1,4 +1,4 @@
name: Run tests
name: Build Docker Images
on:
push:
branches:

View File

@ -1,14 +1,7 @@
name: Lint Migrations
on:
push:
branches:
- main
paths:
- 'packages/db/migrations/**'
pull_request:
branches:
- main
paths:
- 'packages/db/migrations/**'
@ -16,7 +9,7 @@ jobs:
lint_migrations:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v1
- name: Find modified migrations
run: |
modified_migrations=$(git diff --diff-filter=d --name-only origin/$GITHUB_BASE_REF...origin/$GITHUB_HEAD_REF 'packages/db/migrations/*.do.*.sql')

View File

@ -96,21 +96,21 @@ jobs:
PG_LOGGER: debug
REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}
MQ_REDIS_URL: redis://localhost:${{ job.services.redis.ports[6379] }}
build-docker-images:
name: Build docker images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build the API docker image
run: 'docker build --file packages/api/Dockerfile .'
- name: Build the content-fetch docker image
run: 'docker build --file packages/content-fetch/Dockerfile .'
- name: Build the inbound-email-handler docker image
run: 'docker build --file packages/inbound-email-handler/Dockerfile .'
- name: Build the content-fetch cloud function docker image
run: 'docker build --file packages/content-fetch/Dockerfile-gcf .'
- name: Build the tts docker image
run: 'docker build --file packages/text-to-speech/Dockerfile .'
# build-docker-images:
# name: Build docker images
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Build the API docker image
# run: 'docker build --file packages/api/Dockerfile .'
# - name: Build the content-fetch docker image
# run: 'docker build --file packages/content-fetch/Dockerfile .'
# - name: Build the inbound-email-handler docker image
# run: 'docker build --file packages/inbound-email-handler/Dockerfile .'
# - name: Build the content-fetch cloud function docker image
# run: 'docker build --file packages/content-fetch/Dockerfile-gcf .'
# - name: Build the tts docker image
# run: 'docker build --file packages/text-to-speech/Dockerfile .'