This is an automated email from the ASF dual-hosted git repository.
lrhkobe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 709b211de [ISSUE #913] Push docker image to apache repo (#4282)
709b211de is described below
commit 709b211deb6b96c04c949d95eb7ba81fa63f3722
Author: Kartik Tayal <[email protected]>
AuthorDate: Wed Nov 15 16:39:58 2023 +0530
[ISSUE #913] Push docker image to apache repo (#4282)
* Update build file to push docker image only on release
Fix #913
* Update build.yaml
---------
Co-authored-by: mike_xwm <[email protected]>
---
.github/workflows/build.yaml | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 67af54f16..a5a81f6db 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -18,23 +18,32 @@
#
name: Build
on:
- push:
- branches:
- - master
+ release:
+ types: [released]
jobs:
docker:
runs-on: ubuntu-latest
steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
- name: Login to DockerHub
uses: docker/login-action@v2
with:
- username: ${{ secrets.DOCKERHUB_USERNAME }}
- password: ${{ secrets.DOCKERHUB_PASSWORD }}
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Docker meta
+ id: meta
+ uses: docker/metadata-action@v4
+ with:
+ images: |
+ apache/eventmesh
+
- name: Build and push
- uses: docker/build-push-action@v3
+ uses: docker/build-push-action@v4
with:
push: true
- tags: eventmesh/eventmesh:latest
+ tags: ${{ steps.meta.outputs.tags }}
+ labels: ${{ steps.meta.outputs.labels }}
file: ./docker/Dockerfile
context: ./
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]