File tree Expand file tree Collapse file tree 2 files changed +56
-1
lines changed
Expand file tree Collapse file tree 2 files changed +56
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Docker
2+
3+ on :
4+ push :
5+ branches : ["*"]
6+
7+ jobs :
8+ docker :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ matrix :
12+ include :
13+ - tag : " deployer7"
14+ context : " deployer/v7"
15+ - tag : " deployer6"
16+ context : " deployer/v6"
17+
18+ fail-fast : false
19+
20+ name : Docker (dockette/deploy:${{ matrix.tag }})
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v2
25+
26+ - name : Login to DockerHub
27+ uses : docker/login-action@v1
28+ with :
29+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30+ password : ${{ secrets.DOCKERHUB_TOKEN }}
31+
32+ - name : Set up QEMU
33+ uses : docker/setup-qemu-action@v1
34+
35+ - name : Set up Docker Buildx
36+ uses : docker/setup-buildx-action@v1
37+
38+ - name : Cache Docker layers
39+ uses : actions/cache@v2
40+ with :
41+ path : /tmp/.buildx-cache
42+ key : ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.tag }}
43+ restore-keys : |
44+ ${{ runner.os }}-buildx-
45+
46+ - name : Build and push
47+ if : github.ref == 'refs/heads/master'
48+ uses : docker/build-push-action@v2
49+ with :
50+ context : ${{ matrix.context }}
51+ push : true
52+ tags : dockette/deploy:${{ matrix.tag }}
53+ cache-from : type=local,src=/tmp/.buildx-cache
54+ cache-to : type=local,dest=/tmp/.buildx-cache
55+ platforms : ${{ matrix.platforms || 'linux/amd64,linux/arm64' }}
Original file line number Diff line number Diff line change 1- FROM dockette/php81
1+ FROM dockette/php:8.1
22
33LABEL maintainer=
"[email protected] " 44
You can’t perform that action at this time.
0 commit comments