Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

Commit 10fea92

Browse files
author
apastorino
committed
trigger_on_push_for_userprofile.yml
1 parent ff97b97 commit 10fea92

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/userprofile.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
name: 'ci for userprofile'
33

44
on:
5+
push:
6+
branches:
7+
- 'main'
8+
paths:
9+
- 'apis/userprofile/**'
10+
- '.github/workflows/userprofile.yml'
511
pull_request:
612
branches:
713
- 'main'
@@ -87,13 +93,14 @@ jobs:
8793
docker build . -t devopsoh02778cr.azurecr.io/devopsoh02778/api-userprofile:${{github.sha}}
8894
docker push devopsoh02778cr.azurecr.io/devopsoh02778/api-userprofile:${{github.sha}}
8995
- name: 'Login via Azure CLI'
96+
if: github.event_name != 'pull_request'
9097
uses: azure/login@v1
9198
with:
9299
creds: ${{ secrets.AZURE_CREDENTIALS }}
93100
- name: 'deploy'
94101
if: github.event_name != 'pull_request'
95102
uses: azure/webapps-deploy@v2
96103
with:
97-
slot-name: 'devopsoh02778userprofile-staging'
104+
slot-name: 'devopsoh02778userprofile/staging'
98105
app-name: 'devopsoh02778userprofile'
99106
images: 'devopsoh02778cr.azurecr.io/devopsoh02778/api-userprofile:${{ github.sha }}'

0 commit comments

Comments
 (0)