File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' v*' # This will match any tag that starts with 'v'
7
-
7
+ pull_request : # Add this to run on PRs
8
+ branches :
9
+ - main # Assuming your default branch is 'main'
8
10
jobs :
9
11
build :
10
12
runs-on : ubuntu-latest
11
13
12
14
steps :
13
15
- uses : actions/checkout@v3
16
+ with :
17
+ submodules : recursive
14
18
- uses : docker/setup-qemu-action@v3
15
19
- uses : docker/setup-buildx-action@v3
16
20
- uses : docker/build-push-action@v5
17
21
with :
18
22
context : .
19
- tags : ghcr.io/hasura/ndc-calcite:${{ github.ref_name }} # Use the tag name for the Docker image
23
+ tags : ghcr.io/hasura/ndc-calcite:${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
20
24
platforms : linux/amd64,linux/arm64
21
25
cache-from : type=gha
22
26
cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments