File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " *.*"
7+
8+ jobs :
9+ main :
10+ name : Publish Release
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout Repository
15+ uses : actions/checkout@v4
16+
17+ - name : Publish Release
18+ uses : leomotors/release-action@v6
19+ with :
20+ mode : release
21+ github-token : ${{ secrets.GITHUB_TOKEN }}
22+ tag : ${{ github.ref_name }}
23+ title : Ling gan gu # Release title will be "Application Name vX.Y.Z"
24+
25+ docker-push :
26+ name : Build Docker Image
27+ runs-on : ubuntu-latest
28+
29+ permissions :
30+ id-token : write
31+ packages : write
32+
33+ steps :
34+ - name : Checkout
35+ uses : actions/checkout@v4
36+ - name : Set up Docker Buildx
37+ uses : docker/setup-buildx-action@v3
38+ - name : Log in to GitHub Container Registry
39+ uses : docker/login-action@v3
40+ with :
41+ registry : ghcr.io
42+ username : ${{ github.repository_owner }}
43+ password : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : Build Docker Image and Push
46+ uses : docker/build-push-action@v5
47+ with :
48+ context : .
49+ push : true
50+ tags : ghcr.io/q2tm/ling-gan-gu:${{ github.ref_name }},ghcr.io/q2tm/ling-gan-gu:latest
51+ platforms : linux/amd64,linux/arm64
52+ cache-from : type=gha
53+ cache-to : type=gha,mode=max
You can’t perform that action at this time.
0 commit comments