This is an automated email from the ASF dual-hosted git repository.
caigy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-docker.git
The following commit(s) were added to refs/heads/master by this push:
new ceacb61 init docker-publish.yml
ceacb61 is described below
commit ceacb6143c4dcb7201dd27b1698a57d7026ee9d5
Author: caigy <[email protected]>
AuthorDate: Mon Jan 27 12:31:12 2025 +0800
init docker-publish.yml
---
.github/workflows/docker-publish.yml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/.github/workflows/docker-publish.yml
b/.github/workflows/docker-publish.yml
new file mode 100644
index 0000000..0df8bf7
--- /dev/null
+++ b/.github/workflows/docker-publish.yml
@@ -0,0 +1,27 @@
+name: docker-publish
+
+on:
+ workflow_dispatch:
+
+env:
+ REGISTRY: docker.io
+ # github.repository as <account>/<repo>
+ IMAGE_NAME: apache/rocketmq
+
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Log into registry ${{ env.REGISTRY }}
+ #if: env.exists == 'false' && github.event_name != 'pull_request'
+ uses: docker/login-action@v3
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ secrets.DOCKERHUB_USER }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}