Remove unneeded docker images at the end of the pipeline
This commit is contained in:
parent
2c9fd332d4
commit
85fb3fee67
1 changed files with 4 additions and 1 deletions
|
|
@ -151,16 +151,19 @@ test-e2e:
|
||||||
- python3 -m venv venv
|
- python3 -m venv venv
|
||||||
- source venv/bin/activate
|
- source venv/bin/activate
|
||||||
- pip3 install -r requirements.txt
|
- pip3 install -r requirements.txt
|
||||||
- python3 main.py --stop
|
- docker-compose down --remove-orphans
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
- docker pull $IMAGE
|
- docker pull $IMAGE
|
||||||
- docker tag $IMAGE peerplays-base:latest
|
- docker tag $IMAGE peerplays-base:latest
|
||||||
- docker image ls -a
|
- docker image ls -a
|
||||||
|
- docker-compose build
|
||||||
- python3 main.py --start all
|
- python3 main.py --start all
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
- python3 -m pytest test_btc_init_state.py test_hive_inital_state.py test_pp_inital_state.py
|
- python3 -m pytest test_btc_init_state.py test_hive_inital_state.py test_pp_inital_state.py
|
||||||
- python3 main.py --stop
|
- python3 main.py --stop
|
||||||
- deactivate
|
- deactivate
|
||||||
- docker ps -a
|
- docker ps -a
|
||||||
|
after_script:
|
||||||
|
- docker rmi $(docker images -a | grep -v 'hive-for-peerplays\|ethereum-for-peerplays\|bitcoin-for-peerplays\|ubuntu-for-peerplays' | awk '{print $3}')
|
||||||
tags:
|
tags:
|
||||||
- python-tests
|
- python-tests
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue