File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed
Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ # Maintain dependencies for GitHub Actions
4+ - package-ecosystem : " github-actions"
5+ directory : " /"
6+ schedule :
7+ interval : " daily"
Original file line number Diff line number Diff line change 1+ name : Publish Docker image
2+
3+ on : push
4+
5+ jobs :
6+ buildx :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout
10+ uses : actions/checkout@v3
11+
12+ - name : Docker meta
13+ id : meta
14+ uses : docker/metadata-action@v4
15+ with :
16+ images : ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
17+ # generate Docker tags based on the following events/attributes
18+ tags : |
19+ type=ref,event=branch
20+ type=semver,pattern={{version}}
21+ type=semver,pattern={{major}}.{{minor}}
22+ type=semver,pattern={{major}}
23+
24+ # Required if building multi-arch images
25+ - name : Set up QEMU
26+ uses : docker/setup-qemu-action@v2
27+
28+ - id : buildx
29+ name : Set up Docker Buildx
30+ uses : docker/setup-buildx-action@v2
31+ with :
32+ buildkitd-flags : --debug
33+ install : true
34+
35+ - name : Login to DockerHub
36+ uses : docker/login-action@v2
37+ with :
38+ username : ${{ secrets.DOCKERHUB_USERNAME }}
39+ password : ${{ secrets.DOCKERHUB_TOKEN }}
40+
41+ - name : Build and push
42+ uses : docker/build-push-action@v3
43+ with :
44+ platforms : linux/amd64,linux/arm64,linux/386
45+ push : true
46+ labels : ${{ steps.meta.outputs.labels }}
47+ tags : ${{ steps.meta.outputs.tags }}
48+ cache-from : type=gha
49+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments