-
Notifications
You must be signed in to change notification settings - Fork 35
33 lines (28 loc) · 858 Bytes
/
pr-ci.yml
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
name: PR CI
# For all pushes to the main branch run the tests and push the image to the
# GitHub registry under an edge tag so we can use it for the nightly
# integration tests
on:
pull_request:
branches: main
jobs:
docker:
runs-on: ubuntu-latest
steps:
# GitHub Actions do not automatically checkout your projects. If you need the code
# you need to check it out.
- name: Checkout
uses: actions/[email protected]
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Test
id: docker_test
uses: docker/build-push-action@v4
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./app
file: ./app/Dockerfile
target: test
cache-from: type=gha
cache-to: type=gha,mode=max