자동화 개선: deploy.sh 제거 및 워크플로에 Registry 비밀값 유효성 검사 추가
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 27s
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 27s
This commit is contained in:
@@ -16,9 +16,16 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Check secrets
|
||||
run: |
|
||||
test -n "${{ secrets.REGISTRY_USERNAME }}" || (echo "REGISTRY_USERNAME is empty" && exit 1)
|
||||
test -n "${{ secrets.REGISTRY_PASSWORD }}" || (echo "REGISTRY_PASSWORD is empty" && exit 1)
|
||||
|
||||
- name: Login to registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login lshfly-registry.duckdns.org -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login lshfly-registry.duckdns.org \
|
||||
-u "${{ secrets.REGISTRY_USERNAME }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user