File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on : push
4+
5+ jobs :
6+ docker :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Set up QEMU
10+ uses : docker/setup-qemu-action@v2
11+
12+ - name : Set up Docker Buildx
13+ uses : docker/setup-buildx-action@v2
14+
15+ - name : Login to GitHub Container Registry
16+ uses : docker/login-action@v2
17+ with :
18+ registry : ghcr.io
19+ username : ${{ github.repository_owner }}
20+ password : ${{ secrets.GITHUB_TOKEN }}
21+
22+ - name : Read image identifiers
23+ id : image
24+ uses : ASzc/change-string-case-action@v1
25+ with :
26+ string : ${{ github.repository }}
27+
28+ - name : Build and push
29+ uses : docker/build-push-action@v3
30+ with :
31+ push : true
32+ tags : |
33+ ghcr.io/${{ steps.image.outputs.lowercase }}:latest
34+ ghcr.io/${{ steps.image.outputs.lowercase }}:${{ github.sha }}
35+
You can’t perform that action at this time.
0 commit comments