generated from dragonfish/node-ts-template
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 999 Bytes
/
pr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: PR
permissions: read-all
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
name: Build
env:
TEST_TAG: ride/driver-service
steps:
- name: Checkout Code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
- name: Build and export cache
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6
with:
load: true
tags: ${{ env.TEST_TAG }}
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
# - name: Test
# run: |
# docker run --rm ${{ env.TEST_TAG }}
auto_merge:
permissions:
contents: read
pull-requests: write
name: Auto Merge PR if bot
uses: dragonfish/workflows/.github/workflows/auto-merge.yaml@main