forked from php-pm/php-pm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 954 Bytes
/
make.yml
File metadata and controls
38 lines (36 loc) · 954 Bytes
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
name: Publish Docker image
on:
push:
branches:
- master
jobs:
build_and_push:
name: Build & Push Docker image to DockerHub
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Show Current Versions
run: |
cat VERSION
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker Images
run: |
export $(cat VERSION | xargs)
make
make php8.0
- name: List Docker Images
run: |
docker image ls
- name: Push to DockerHub
run: |
export $(cat VERSION | xargs)
make push-all
make latest
make php8.0-push-all