This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch PragmaTwice/test-docker-image
in repository https://gitbox.apache.org/repos/asf/kvrocks.git


The following commit(s) were added to refs/heads/PragmaTwice/test-docker-image 
by this push:
     new c570c935 Update nightly.yaml
c570c935 is described below

commit c570c93580fa7edaf5bcbb5607a1da13144a7abb
Author: Twice <[email protected]>
AuthorDate: Sat Jul 29 12:35:53 2023 +0800

    Update nightly.yaml
---
 .github/workflows/nightly.yaml | 80 +++++++++++++++++++++---------------------
 1 file changed, 40 insertions(+), 40 deletions(-)

diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml
index 52d670d2..3c7a889a 100644
--- a/.github/workflows/nightly.yaml
+++ b/.github/workflows/nightly.yaml
@@ -19,59 +19,59 @@ name: Nightly
 
 on:
   push:
-    branches: [unstable, PragmaTwice/test-docker-image]
+    branches: [unstable]
   pull_request:
     paths: ['.github/workflows/nightly.yaml']
 
 jobs:
-#   publish-nightly-docker-image:
-#     name: Publish nightly Docker image
-#     runs-on: ubuntu-20.04
-#     steps:
+  publish-nightly-docker-image:
+    name: Publish nightly Docker image
+    runs-on: ubuntu-20.04
+    steps:
 
-#       - uses: actions/checkout@v3
-#       - name: Login Docker Hub
-#         if: (github.event_name != 'pull_request')
-#         uses: docker/login-action@v1
-#         with:
-#           username: ${{ secrets.DOCKER_USERNAME }}
-#           password: ${{ secrets.DOCKER_PASSWORD }}
+      - uses: actions/checkout@v3
+      - name: Login Docker Hub
+        if: (github.event_name != 'pull_request')
+        uses: docker/login-action@v1
+        with:
+          username: ${{ secrets.DOCKER_USERNAME }}
+          password: ${{ secrets.DOCKER_PASSWORD }}
 
-#       - name: Set up QEMU
-#         uses: docker/setup-qemu-action@v1
+      - name: Set up QEMU
+        uses: docker/setup-qemu-action@v1
 
-#       - name: Set up Docker Buildx
-#         id: buildx
-#         uses: docker/setup-buildx-action@v1
+      - name: Set up Docker Buildx
+        id: buildx
+        uses: docker/setup-buildx-action@v1
 
-#       - name: Available platforms
-#         run: echo ${{ steps.buildx.outputs.platforms }}
+      - name: Available platforms
+        run: echo ${{ steps.buildx.outputs.platforms }}
       
-#       - name: Get core numbers
-#         run: echo "NPROC=$(nproc)" >> $GITHUB_ENV
+      - name: Get core numbers
+        run: echo "NPROC=$(nproc)" >> $GITHUB_ENV
 
-#       - name: Docker meta
-#         id: meta
-#         uses: docker/metadata-action@v4
-#         with:
-#           images: apache/kvrocks
-#           flavor: latest=false
-#           tags: |
-#             type=sha,prefix=nightly-{{date 'YYYYMMDD'}}-,format=short
-#             type=raw,value=nightly
+      - name: Docker meta
+        id: meta
+        uses: docker/metadata-action@v4
+        with:
+          images: apache/kvrocks
+          flavor: latest=false
+          tags: |
+            type=sha,prefix=nightly-{{date 'YYYYMMDD'}}-,format=short
+            type=raw,value=nightly
 
-#       - uses: docker/build-push-action@v3
-#         with:
-#           context: .
-#           platforms: linux/amd64, linux/arm64
-#           push: ${{ github.event_name != 'pull_request' }}
-#           tags: ${{ steps.meta.outputs.tags }}
-#           labels: ${{ steps.meta.outputs.labels }}
-#           build-args: |
-#             MORE_BUILD_ARGS=-j${{ env.NPROC }}
+      - uses: docker/build-push-action@v3
+        with:
+          context: .
+          platforms: linux/amd64, linux/arm64
+          push: ${{ github.event_name != 'pull_request' }}
+          tags: ${{ steps.meta.outputs.tags }}
+          labels: ${{ steps.meta.outputs.labels }}
+          build-args: |
+            MORE_BUILD_ARGS=-j${{ env.NPROC }}
 
   test-nightly-docker-image:
-#     needs: [publish-nightly-docker-image]
+    needs: [publish-nightly-docker-image]
     name: Test nightly Docker image
     runs-on: ubuntu-20.04
     container:

Reply via email to