You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by hu...@apache.org on 2023/02/06 04:09:36 UTC
[incubator-kvrocks] branch unstable updated: Automatically build and push the docker image when tagging a new version (#1247)
This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new fb4aa544 Automatically build and push the docker image when tagging a new version (#1247)
fb4aa544 is described below
commit fb4aa544255656641ba899bca72a9f8f359b44a2
Author: hulk <hu...@gmail.com>
AuthorDate: Mon Feb 6 12:09:30 2023 +0800
Automatically build and push the docker image when tagging a new version (#1247)
Co-authored-by: Twice <tw...@apache.org>
---
.github/workflows/release.yaml | 58 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 00000000..40d75d56
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,58 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+name: release docker image
+
+on:
+ push:
+ tags:
+ - v*
+
+jobs:
+ release-docker-image:
+ name: Release Docker Image
+ runs-on: ubuntu-18.04
+ steps:
+
+ - name: Checkout Code Base
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 64
+
+ - name: Set ENV
+ run: |
+ echo "RELEASE_TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
+
+ - name: Login Docker Hub
+ 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 Docker Buildx
+ id: buildx
+ uses: docker/setup-buildx-action@v1
+
+ - name: Available platforms
+ run: echo ${{ steps.buildx.outputs.platforms }}
+
+ - name: Build And Push Docker Image
+ run: |
+ docker buildx build --platform linux/amd64,linux/arm64 --tag apache/kvrocks:$RELEASE_TAG --tag apache/kvrocks:latest .