更新 GitHub Actions 工作流,添加获取 redissss 容器 ID 和执行 whoami 命令的步骤
Some checks failed
/ services-test (push) Successful in 0s
/ hashFiles (push) Successful in -1s
/ go-hashfiles (push) Successful in 21s
/ job1 (push) Successful in -1s
/ job3 (push) Has been skipped
/ job2 (push) Successful in -1s
/ test-timezone (push) Has been cancelled
Some checks failed
/ services-test (push) Successful in 0s
/ hashFiles (push) Successful in -1s
/ go-hashfiles (push) Successful in 21s
/ job1 (push) Successful in -1s
/ job3 (push) Has been skipped
/ job2 (push) Successful in -1s
/ test-timezone (push) Has been cancelled
This commit is contained in:
6
.github/workflows/services-test.yaml
vendored
6
.github/workflows/services-test.yaml
vendored
@ -18,4 +18,8 @@ jobs:
|
||||
- name: Test with Redis
|
||||
run: |
|
||||
echo ${{ github.event.inputs.test }}
|
||||
docker ps --format "table {{.Names}}"
|
||||
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
|
Reference in New Issue
Block a user