You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2023/01/06 03:42:03 UTC

[shardingsphere-on-cloud] branch main updated: fix(ci): fix docker build for ci (#173)

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

zhonghongsheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shardingsphere-on-cloud.git


The following commit(s) were added to refs/heads/main by this push:
     new cfcc56a  fix(ci): fix docker build for ci (#173)
cfcc56a is described below

commit cfcc56aa9ac6aba68a90cfb9d5a6a02b288a04ae
Author: pierce <xu...@gmail.com>
AuthorDate: Fri Jan 6 11:41:58 2023 +0800

    fix(ci): fix docker build for ci (#173)
---
 .github/workflows/build.yaml | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 8f9910b..821535d 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -16,14 +16,10 @@
 #
 
 name: Create and publish a Docker image
-
 on:
-  push:
-    branches:
-      - 'release-v*'
-    paths:
-      - 'shardingsphere-operator/**'
-    tags:
+  release:
+    types:
+      - published
 env:
   REGISTRY: ghcr.io
   IMAGE_NAME: ${{ github.repository }}/apache-shardingsphere-operator
@@ -55,10 +51,9 @@ jobs:
       - name: Build and push Docker image
         uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
         with:
-          context: .
+          context: ./shardingsphere-operator
           push: true
           tags: ${{ steps.meta.outputs.tags }}
           labels: ${{ steps.meta.outputs.labels }}
           file: shardingsphere-operator/build/Dockerfile
 
-