-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.27 KB
/
main.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: [ master ]
jobs:
build-images:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image: [ php55, php56, php70, php71, php72, php73, php74, php80, js ]
steps:
- uses: actions/checkout@v2
- uses: dorny/paths-filter@v2
id: filter
with:
base: ${{ github.ref }}
filters: |
matrix:
- '${{ matrix.image }}/**'
- name: Login to GitHub Container Registry
if: steps.filter.outputs.matrix == 'true'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: TYPO3IncTeam
password: ${{ secrets.CR_PAT }}
- name: Login to Docker Hub
if: steps.filter.outputs.matrix == 'true'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build ${{ matrix.image }} Image
if: steps.filter.outputs.matrix == 'true'
run: make build_${{ matrix.image }}
- name: Release ${{ matrix.image }} Image
if: steps.filter.outputs.matrix == 'true'
run: make release_${{ matrix.image }}