Add container verification and fix registry auth in deploy
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 29s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 29s
This commit is contained in:
parent
59da6d7f9e
commit
a02add2025
@ -51,8 +51,15 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker logout registry.szmyt151.pl || true
|
docker logout registry.szmyt151.pl || true
|
||||||
|
|
||||||
|
- name: List all containers (verify access)
|
||||||
|
run: |
|
||||||
|
echo "=== All containers on host ==="
|
||||||
|
docker ps -a
|
||||||
|
|
||||||
- name: Deploy (reload container)
|
- name: Deploy (reload container)
|
||||||
run: |
|
run: |
|
||||||
|
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login registry.szmyt151.pl -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
|
||||||
docker pull registry.szmyt151.pl/registryuser/sztucznainteligencjadlafirm:latest
|
docker pull registry.szmyt151.pl/registryuser/sztucznainteligencjadlafirm:latest
|
||||||
docker restart sztucznainteligencjadlafirm || true
|
docker restart sztucznainteligencjadlafirm || true
|
||||||
|
docker logout registry.szmyt151.pl
|
||||||
echo "Container restarted successfully"
|
echo "Container restarted successfully"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user