자동화 개선: deploy.sh 제거 및 워크플로에 Registry 비밀값 유효성 검사 추가
Some checks failed
Build Push and Restart Compose / deploy (push) Failing after 27s

This commit is contained in:
hayato5246
2026-04-01 21:48:05 +09:00
parent 2aa433013b
commit 0ae4c69118
2 changed files with 8 additions and 6 deletions

View File

@@ -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: |

View File

@@ -1,5 +0,0 @@
docker build -t lshreg.duckdns.org/stocksearch .
docker push lshreg.duckdns.org/stocksearch
#ssh -i ~/Downloads/ssh-key-2026-03-17.key opc@140.238.15.144 docker compose restart stocksearch