File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build Dev Image
2+
3+ on :
4+ push :
5+ branches :
6+ - ' multiarch'
7+
8+ permissions :
9+ contents : read
10+ packages : write
11+
12+ env :
13+ REGISTRY : ghcr.io
14+ IMAGE_NAME : ${{ github.repository }}
15+
16+ jobs :
17+ build-and-push :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v6
22+
23+ - name : Set up QEMU
24+ uses : docker/setup-qemu-action@v3
25+
26+ - name : Set up Docker Buildx
27+ uses : docker/setup-buildx-action@v3
28+
29+ - name : Log in to GitHub Container Registry
30+ uses : docker/login-action@v3
31+ with :
32+ registry : ${{ env.REGISTRY }}
33+ username : ${{ github.actor }}
34+ password : ${{ secrets.GITHUB_TOKEN }}
35+
36+ - name : Generate timestamp
37+ id : timestamp
38+ run : echo "ts=$(date +%s)" >> $GITHUB_OUTPUT
39+
40+ - name : Build and push
41+ uses : docker/build-push-action@v6
42+ with :
43+ context : .
44+ platforms : linux/amd64
45+ push : true
46+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.timestamp.outputs.ts }}
47+ cache-from : type=gha
48+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments