Fix CI test step: use docker run instead of compose
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 2s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 2s
This commit is contained in:
parent
780e776294
commit
4b43432ecd
1 changed files with 5 additions and 7 deletions
|
|
@ -25,14 +25,12 @@ jobs:
|
|||
- name: Build Docker image
|
||||
run: docker build -t 192.168.8.174:3000/vrubel/chess-calc:latest .
|
||||
|
||||
- name: Test containers
|
||||
- name: Test image
|
||||
run: |
|
||||
docker compose up -d
|
||||
sleep 5
|
||||
docker compose logs --tail=20
|
||||
|
||||
- name: Stop containers
|
||||
run: docker compose down
|
||||
docker run -d --name chess-calc-test 192.168.8.174:3000/vrubel/chess-calc:latest sleep 30
|
||||
docker exec chess-calc-test python3 -c "from swiss_calc import parser; print('Module OK')"
|
||||
docker logs chess-calc-test
|
||||
docker rm -f chess-calc-test
|
||||
|
||||
- name: Login to Gitea Container Registry
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login http://192.168.8.174:3000 -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue