File tree 4 files changed +25
-24
lines changed
4 files changed +25
-24
lines changed Original file line number Diff line number Diff line change 20
20
"version" : " 1.10.1"
21
21
},
22
22
"ghcr.io/prulloac/devcontainer-features/ollama:1" : {},
23
- // az feature
23
+ // az CLI is helpful for being able to login correctly with DefaultAzureCredential:
24
24
"ghcr.io/devcontainers/features/azure-cli" : {}
25
25
},
26
26
// Configure tool-specific properties.
Original file line number Diff line number Diff line change 1
1
name : App Tests
2
2
3
3
on :
4
- # push:
5
- # branches: [ main ]
6
- # paths-ignore:
7
- # - "**.md"
8
- # - ".azdo/**"
9
- # - ".devcontainer/**"
10
- # - ".github/**"
11
- # pull_request:
12
- # branches: [ main ]
13
- # paths-ignore:
14
- # - "**.md"
15
- # - ".azdo/**"
16
- # - ".devcontainer/**"
17
- # - ".github/**"
4
+ push :
5
+ branches : [ main ]
6
+ paths-ignore :
7
+ - " **.md"
8
+ - " .azdo/**"
9
+ - " .devcontainer/**"
10
+ - " .github/**"
11
+ pull_request :
12
+ branches : [ main ]
13
+ paths-ignore :
14
+ - " **.md"
15
+ - " .azdo/**"
16
+ - " .devcontainer/**"
17
+ - " .github/**"
18
18
workflow_dispatch :
19
19
20
20
permissions :
Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ name: Deploy with azd
2
2
3
3
on :
4
4
workflow_dispatch :
5
- # TODO: change later
6
5
push :
7
6
branches : [ main ]
8
- pull_request :
9
- branches : [ main ]
7
+
10
8
# GitHub Actions workflow to deploy to Azure using azd
11
9
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`
12
10
Original file line number Diff line number Diff line change @@ -2,20 +2,18 @@ name: Evaluate
2
2
3
3
on :
4
4
workflow_dispatch :
5
- # TODO: change later
6
- push :
7
- branches : [ main ]
8
- pull_request :
9
- branches : [ main ]
5
+ issue_comment :
6
+ types : [created]
10
7
11
8
# Set up permissions for deploying with secretless Azure federated credentials
12
- # https://learn.microsoft.com/en-us/ azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
9
+ # https://learn.microsoft.com/azure/developer/github/connect-from-azure?tabs=azure-portal%2Clinux#set-up-azure-login-with-openid-connect-authentication
13
10
permissions :
14
11
id-token : write
15
12
contents : read
16
13
17
14
jobs :
18
15
evaluate :
16
+ if : github.event_name == 'workflow_dispatch' || contains(github.event.comment.body, '#evaluate')
19
17
runs-on : ubuntu-latest
20
18
env :
21
19
AZURE_CLIENT_ID : ${{ vars.AZURE_CLIENT_ID }}
24
22
AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
25
23
AZURE_RESOURCE_GROUP : ${{ vars.AZURE_RESOURCE_GROUP }}
26
24
steps :
25
+ - name : Check for evaluate hash tag
26
+ if : contains(github.event.comment.body, '#evaluate')
27
+ run : |
28
+ echo "Comment contains #evaluate hashtag"
29
+
27
30
- uses : actions/checkout@v4
28
31
- name : Install PostgreSQL development libraries
29
32
run : |
You can’t perform that action at this time.
0 commit comments