fix: add docker login before push (registry requires auth)

This commit is contained in:
2026-07-19 19:11:34 +08:00
parent bd6fad30ca
commit 02a51659c6
+1
View File
@@ -28,6 +28,7 @@ jobs:
- name: Build & Push Docker image
run: |
apk add --no-cache docker-cli
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login $REGISTRY -u admin --password-stdin
TAG=${{ github.sha }}
docker build -t $REGISTRY/$APP:$TAG -t $REGISTRY/$APP:${{ inputs.environment }} .
docker push $REGISTRY/$APP:$TAG