-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.09 KB
/
check.yml
File metadata and controls
44 lines (38 loc) · 1.09 KB
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
43
44
name: check
on:
pull_request:
branches: [main]
paths: [dockerfiles/**]
jobs:
verify-build:
strategy:
matrix:
include:
- dockerfile: Dockerfile-dim
image_name: proxystore-dim
- dockerfile: Dockerfile-relay
image_name: proxystore-relay
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check if Dockerfile changed
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
addedOrModified:
- added|modified: '**'
dockerfile: ['dockerfiles/${{ matrix.dockerfile }}']
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
if: steps.filter.outputs.dockerfile == 'true'
- name: Build Docker image
uses: docker/build-push-action@v3
if: steps.filter.outputs.dockerfile == 'true'
with:
context: "{{defaultContext}}:dockerfiles"
file: ${{ matrix.dockerfile }}
push: false