File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and push Docker image
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ build-and-push :
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ packages : write
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Log in to GHCR
19+ uses : docker/login-action@v3
20+ with :
21+ registry : ghcr.io
22+ username : ${{ github.actor }}
23+ password : ${{ secrets.GITHUB_TOKEN }}
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v3
27+
28+ - name : Build and push
29+ uses : docker/build-push-action@v6
30+ with :
31+ context : .
32+ push : true
33+ platforms : linux/arm64
34+ tags : ghcr.io/nabil-boutaleb-sf/tickflow:latest
35+ cache-from : type=gha
36+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments