Skip to content

Commit fa6eac6

Browse files
committed
chore: add debug ci
1 parent 4d6330d commit fa6eac6

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/backend-ci-cd.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,29 @@ jobs:
8282
- name: Set up Docker Buildx
8383
uses: docker/setup-buildx-action@v3
8484

85+
- name: Debug secrets (only for troubleshooting)
86+
run: |
87+
echo "Checking if secrets are set..."
88+
if [ -n "${{ secrets.CT_ALIYUN_USER }}" ]; then
89+
echo "CT_ALIYUN_USER is set (length: ${#CT_ALIYUN_USER})"
90+
else
91+
echo "CT_ALIYUN_USER is NOT set"
92+
fi
93+
if [ -n "${{ secrets.CT_ALIYUN_PASS }}" ]; then
94+
echo "CT_ALIYUN_PASS is set (length: ${#CT_ALIYUN_PASS})"
95+
else
96+
echo "CT_ALIYUN_PASS is NOT set"
97+
fi
98+
echo "Registry: ${{ env.REGISTRY }}"
99+
85100
- name: Login to Aliyun Container Registry
86101
uses: docker/login-action@v3
87102
with:
88103
registry: ${{ env.REGISTRY }}
89104
username: ${{ secrets.CT_ALIYUN_USER }}
90105
password: ${{ secrets.CT_ALIYUN_PASS }}
106+
ecr: auto
107+
logout: true
91108

92109
- name: Build and push backend image
93110
uses: docker/build-push-action@v5

0 commit comments

Comments
 (0)