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