You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ir...@apache.org on 2022/07/17 12:59:51 UTC

[dubbo-go-pixiu] branch feature/auto-image created (now a96225c4)

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

ironcity pushed a change to branch feature/auto-image
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git


      at a96225c4 [Test] test docker action

This branch includes the following new commits:

     new a96225c4 [Test] test docker action

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[dubbo-go-pixiu] 01/01: [Test] test docker action

Posted by ir...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ironcity pushed a commit to branch feature/auto-image
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git

commit a96225c4f5ae34fd812728ede6baa0446ce340b4
Author: tiecheng <ti...@alibaba-inc.com>
AuthorDate: Sun Jul 17 20:59:41 2022 +0800

    [Test] test docker action
---
 .github/dependabot.yml      |  7 +++++++
 .github/workflows/image.yml | 46 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 00000000..583decfd
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,7 @@
+version: 2
+updates:
+  # Maintain dependencies for GitHub Actions
+  - package-ecosystem: "github-actions"
+    directory: "/"
+    schedule:
+      interval: "daily"
\ No newline at end of file
diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml
new file mode 100644
index 00000000..a4581c6b
--- /dev/null
+++ b/.github/workflows/image.yml
@@ -0,0 +1,46 @@
+name: ci
+
+on:
+  push:
+    branches:
+      - 'master'
+    tags:
+      - 'v*'
+  pull_request:
+    branches:
+      - 'master'
+
+jobs:
+  docker:
+    runs-on: ubuntu-latest
+    steps:
+      -
+        name: Checkout
+        uses: actions/checkout@v3
+      -
+        name: Docker meta
+        id: meta
+        uses: docker/metadata-action@v4
+        with:
+          images: |
+            name/app
+          tags: |
+            type=ref,event=branch
+            type=ref,event=pr
+            type=semver,pattern={{version}}
+            type=semver,pattern={{major}}.{{minor}}
+      -
+        name: Login to DockerHub
+        if: github.event_name != 'pull_request'
+        uses: docker/login-action@v2
+        with:
+          username: ${{ secrets.DOCKERHUB_USERNAME }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
+      -
+        name: Build and push
+        uses: docker/build-push-action@v3
+        with:
+          context: .
+          push: ${{ github.event_name != 'pull_request' }}
+          tags: ${{ steps.meta.outputs.tags }}
+          labels: ${{ steps.meta.outputs.labels }}
\ No newline at end of file