File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-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+ tags : [ 'v*.*.*' ]
7+
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
12+
13+ jobs :
14+ build :
15+
16+ runs-on : ubuntu-latest
17+ permissions :
18+ contents : read
19+ packages : write
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v2
24+
25+ - name : Log into registry ${{ env.REGISTRY }}
26+ if : github.event_name != 'pull_request'
27+ uses : docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
28+ with :
29+ registry : ${{ env.REGISTRY }}
30+ username : ${{ github.actor }}
31+ password : ${{ secrets.GITHUB_TOKEN }}
32+
33+ - uses : docker/setup-qemu-action@master
34+ with :
35+ platforms : all
36+
37+ - name : Extract Docker metadata
38+ id : meta
39+ uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
40+ with :
41+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
42+
43+ - name : Set up Docker Buildx
44+ id : buildx
45+ uses : docker/setup-buildx-action@master
46+
47+ - name : Build and push Docker image
48+ uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
49+ with :
50+ context : .
51+ push : ${{ github.event_name != 'pull_request' }}
52+ tags : ${{ steps.meta.outputs.tags }}
53+ labels : ${{ steps.meta.outputs.labels }}
54+ builder : ${{ steps.buildx.outputs.name }}
55+ platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments