File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ concurrency :
9+ group : deploy-main
10+ cancel-in-progress : true
11+
12+ jobs :
13+ build-and-push :
14+ name : Build and Push Image
15+ runs-on : ubuntu-24.04
16+ permissions :
17+ contents : read
18+ packages : write
19+ env :
20+ REGISTRY : ghcr.io
21+ IMAGE_NAME : ${{ github.repository }}
22+ steps :
23+ - uses : actions/checkout@v6
24+ - uses : docker/setup-buildx-action@v3
25+ - uses : docker/login-action@v3
26+ with :
27+ registry : ${{ env.REGISTRY }}
28+ username : ${{ github.actor }}
29+ password : ${{ secrets.GITHUB_TOKEN }}
30+
31+ - uses : docker/build-push-action@v6
32+ with :
33+ context : .
34+ file : ./Dockerfile
35+ push : true
36+ tags : |
37+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
38+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
39+ cache-from : type=gha
40+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change 11addrepo
22autoincrement
3+ buildx
34fullstacksjs
45gitmessage
56grammyjs
67libsql
78listcontributors
89listrepos
10+ lyja
911nodenext
1012removerepo
1113Safaeirad
1214smee
13- lyja
1415unmute
You can’t perform that action at this time.
0 commit comments