Browse Source

Merge pull request #58 from nameczz/main

Add dev yml and remove semantic release
nameczz 4 years ago
parent
commit
75174a0ac9
2 changed files with 28 additions and 19 deletions
  1. 28 0
      .github/workflows/dev.yml
  2. 0 19
      .github/workflows/pre.yml

+ 28 - 0
.github/workflows/dev.yml

@@ -0,0 +1,28 @@
+on:
+  pull_request:
+    branches:
+      - main
+    types: [closed]
+
+jobs:
+  if: github.event.pull_request.merged == true
+  publish:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Node.js
+        uses: actions/setup-node@v1
+        with:
+          node-version: 12
+
+      - name: Login to DockerHub
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKER_USERNAME }}
+          password: ${{ secrets.DOCKER_PWD }}
+
+      - name: Docker Build
+        run: docker build -t milvusdb/milvus-insight:dev --build-arg VERSION=dev .
+
+      - name: Docker Push Dev
+        run: docker push milvusdb/milvus-insight:dev

+ 0 - 19
.github/workflows/pre.yml

@@ -1,19 +0,0 @@
-on:
-  release:
-    types: [prereleased]
-    branches: [main]
-
-jobs:
-  publish:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - name: Setup Node.js
-        uses: actions/setup-node@v1
-        with:
-          node-version: 12
-
-      - name: Semantic release
-        env:
-          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
-        run: npx semantic-release