Browse Source

up build docker

ljw 1 year ago
parent
commit
89cd724bab
2 changed files with 1 additions and 41 deletions
  1. 1 0
      .github/workflows/build.yml
  2. 0 41
      .github/workflows/docker_arm64.yml

+ 1 - 0
.github/workflows/build.yml

@@ -5,6 +5,7 @@ on:
5 5
   push:
6 6
     tags:
7 7
       - 'v*.*.*'  # 当推送带有版本号的 tag(例如 v1.0.0)时触发工作流
8
+      - 'test*'  # 当推送带有版本号的 tag(例如 v1.0.0-rc1)时触发工作流
8 9
 
9 10
 jobs:
10 11
   build:

+ 0 - 41
.github/workflows/docker_arm64.yml

@@ -1,41 +0,0 @@
1
-name: Build and Push Docker Arm64 Image
2
-
3
-on:
4
-  workflow_dispatch: # 手动触发工作流时触发
5
-    inputs:
6
-      tags:
7
-        description: 'Test scenario tags'
8
-        required: false
9
-        type: boolean
10
-#  push:
11
-#    tags:
12
-#      - 'v*.*.*'  # 仅当推送标签(例如 v1.0.0)时触发
13
-
14
-jobs:
15
-  build:
16
-    runs-on: ubuntu-latest
17
-
18
-    steps:
19
-      - name: Checkout code
20
-        uses: actions/checkout@v4
21
-
22
-      - name: Set up Docker Buildx
23
-        uses: docker/setup-buildx-action@v3
24
-
25
-      - name: Log in to Docker Hub
26
-        uses: docker/login-action@v2
27
-        with:
28
-          username: ${{ secrets.DOCKER_USERNAME }}
29
-          password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
30
-
31
-      - name: Extract version from tag
32
-        id: vars
33
-        run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
34
-
35
-      - name: Build and push Docker image
36
-        id: push
37
-        run: |
38
-          docker buildx create --use
39
-          docker buildx build --platform linux/arm64 \
40
-            -t lejianwen/rustdesk-api:actiontest-arm64 \
41
-            --push . -f ./Dockerfile_arm64