Skip to content

Commit 76076c6

Browse files
committed
docker gan gu
1 parent 16b57e8 commit 76076c6

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

0 commit comments

Comments
 (0)