generated from strg-at/template-basic
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1020 Bytes
/
test-build.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
---
name: docker-build
on:
pull_request:
types:
- opened
- synchronize
paths-ignore:
- .github/**
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
get-changed-files:
permissions:
contents: read
uses: strg-at/github-workflows/.github/workflows/get-changed-files.yaml@8ec249ae473c8b59ed2ca8a3836468ac3b446c5f # v1.8.1
with:
runner: '["ubuntu-latest"]'
files: |
**/Dockerfile
matrix: true
dir_names: true
docker-build:
needs: get-changed-files
if: ${{ needs.get-changed-files.outputs.files != '[]'}}
permissions:
contents: read
strategy:
matrix:
paths: ${{fromJSON(needs.get-changed-files.outputs.files)}}
fail-fast: false
uses: strg-at/github-workflows/.github/workflows/docker-build.yaml@8ec249ae473c8b59ed2ca8a3836468ac3b446c5f # v1.8.1
with:
runner: '["ubuntu-latest"]'
file: ${{ matrix.paths }}/Dockerfile
context: ${{ matrix.paths }}