Skip to content
This repository was archived by the owner on Sep 24, 2025. It is now read-only.

Commit c32597b

Browse files
committed
Add on-merge changes for building images only on changes
1 parent 4beb8ad commit c32597b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/on-merge-ps-ingestion-pipeline.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: tj-actions/changed-files@v35
3333
with:
3434
files: |
35-
./src/ps_ingestion_pipeline/ps_replay_extraction_lambda
35+
./src/ps_ingestion_pipeline/ps_replay_extraction_lambda/**/*.py
3636
3737
- name: Build and push PS Replay Extraction Lambda image
3838
if: steps.changed-replay-extraction-files.outputs.any_changed == 'true'
@@ -44,7 +44,15 @@ jobs:
4444
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${SHORT_SHA} .
4545
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${SHORT_SHA}
4646
47+
- name: Check if PS Replay Transform files have changed
48+
id: changed-replay-transform-files
49+
uses: tj-actions/changed-files@v35
50+
with:
51+
files: |
52+
./src/ps_ingestion_pipeline/ps_replay_transform_lambda/**/*.py
53+
4754
- name: Build and push PS Replay Transform Lambda image
55+
if: steps.changed-replay-transform-files.outputs.any_changed == 'true'
4856
working-directory: ./src/ps_ingestion_pipeline/ps_replay_transform_lambda
4957
env:
5058
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
@@ -53,7 +61,15 @@ jobs:
5361
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:${SHORT_SHA} .
5462
docker push $ECR_REGISTRY/$ECR_REPOSITORY:${SHORT_SHA}
5563
64+
- name: Check if PS Teams DDB Writer files have changed
65+
id: changed-teams-ddb-writer-files
66+
uses: tj-actions/changed-files@v35
67+
with:
68+
files: |
69+
./src/ps_ingestion_pipeline/ps_teams_ddb_writer_lambda/**/*.py
70+
5671
- name: Build and push PS Teams DDB Writer Lambda image
72+
if: steps.changed-teams-ddb-writer-files.outputs.any_changed == 'true'
5773
working-directory: ./src/ps_ingestion_pipeline/ps_teams_ddb_writer_lambda
5874
env:
5975
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}

0 commit comments

Comments
 (0)