-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (56 loc) · 1.72 KB
/
php.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
72
73
74
75
name: GitHub Actions
on: push
env:
REPO: lazerg/laravel
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
jobs:
php80:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php80.Dockerfile --tag $REPO:php80
- name: Docker push as php80
run: docker push $REPO:php80
php81:
needs: php80
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php81.Dockerfile --tag $REPO:php81
- name: Docker push as php81
run: docker push $REPO:php81
php82:
needs: php81
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php82.Dockerfile --tag $REPO:php82
- name: Docker push as php82
run: docker push $REPO:php82
php83:
needs: php82
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build . --file php83.Dockerfile --tag $REPO:latest --tag $REPO:php83
- name: Docker push as latest
run: docker push $REPO:latest
- name: Docker push as php83
run: docker push $REPO:php83