Skip to content

Commit 82baaf6

Browse files
committed
feat: update GitHub Actions workflow to include path filtering for tree-disk-api
1 parent 490cd97 commit 82baaf6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/main_api-treediskanalyzer-prod.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
push:
88
branches:
99
- main
10+
paths:
11+
- 'tree-disk-api/**'
1012
workflow_dispatch:
1113

1214
jobs:
@@ -15,6 +17,8 @@ jobs:
1517

1618
steps:
1719
- uses: actions/checkout@v2
20+
with:
21+
path: tree-disk-api
1822

1923
- name: Set up Docker Buildx
2024
uses: docker/setup-buildx-action@v2
@@ -29,6 +33,7 @@ jobs:
2933
- name: Build and push container image to registry
3034
uses: docker/build-push-action@v3
3135
with:
36+
context: '{{defaultContext}}:tree-disk-api'
3237
push: true
3338
tags: tonylukeregistry.azurecr.io/${{ secrets.AzureAppService_ContainerUsername_9928dccc56224794952aafcf7d620986 }}/treediskanalyzer/api:${{ github.sha }}
3439
file: ./Dockerfile

0 commit comments

Comments
 (0)