-
Notifications
You must be signed in to change notification settings - Fork 14
71 lines (59 loc) · 1.9 KB
/
build-auxiliary-images.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build Auxiliary Images
on:
# push:
# branches: [ main ]
workflow_dispatch:
schedule:
- cron: '0 18 * * 6'
jobs:
build_and_push_php:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- "7.1"
- "7.2"
- "7.3"
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push ${{ matrix.version }}-cli-supervisor
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-supervisor
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-supervisor
- name: Build and push ${{ matrix.version }}-cli-alpine-supervisor
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-supervisor
file: ./auxiliary/${{ matrix.version }}-cli-supervisor/Dockerfile-alpine
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-alpine-supervisor
- name: Build and push ${{ matrix.version }}-cli-cron
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-cron
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-cron
- name: Build and push ${{ matrix.version }}-cli-alpine-cron
uses: docker/build-push-action@v4
with:
context: ./auxiliary/${{ matrix.version }}-cli-cron
file: ./auxiliary/${{ matrix.version }}-cli-cron/Dockerfile-alpine
push: true
tags: |
suyar/php:${{ matrix.version }}-cli-alpine-cron