From 503a81157e2e61df0c8ddb67f6c267fd1e355a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 26 Feb 2025 12:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20GitHub=20Actions=20?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=B5=81=EF=BC=8C=E6=B7=BB=E5=8A=A0=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=20redissss=20=E5=AE=B9=E5=99=A8=20ID=20=E5=92=8C?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=20whoami=20=E5=91=BD=E4=BB=A4=E7=9A=84?= =?UTF-8?q?=E6=AD=A5=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/services-test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/services-test.yaml b/.github/workflows/services-test.yaml index 9cc9d1f..3e665f7 100644 --- a/.github/workflows/services-test.yaml +++ b/.github/workflows/services-test.yaml @@ -18,4 +18,8 @@ jobs: - name: Test with Redis run: | echo ${{ github.event.inputs.test }} - docker ps --format "table {{.Names}}" \ No newline at end of file + docker ps --format "table {{.Names}}" + # 找出 redissss 的 container id + REDIS_CONTAINER_ID=$(docker ps --filter "name=redissss" --format "{{.ID}}") + echo $REDIS_CONTAINER_ID + docker exec $REDIS_CONTAINER_ID whoami \ No newline at end of file