File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3636 "source devstack/openrc admin admin; exec nova list"
3737 docker-compose exec -T --user stack controller /bin/bash -c \
3838 "source devstack/openrc admin admin; exec nova list" | grep ACTIVE
39+ docker-compose stop
40+ docker ps -a
41+ - name : Login to Docker Hub
42+ uses : docker/login-action@v2
43+ with :
44+ username : ${{ secrets.DOCKERHUB_USERNAME }}
45+ password : ${{ secrets.DOCKERHUB_TOKEN }}
46+ - name : Push to Docker Hub
47+ if : github.event_name != 'schedule'
48+ run : |
49+ docker commit controller bobuhiro11/containerized-devstack-controller:${{ github.sha }}
50+ docker commit compute-1 bobuhiro11/containerized-devstack-compute-1:${{ github.sha }}
51+ docker commit compute-2 bobuhiro11/containerized-devstack-compute-2:${{ github.sha }}
52+ docker push bobuhiro11/containerized-devstack-controller:${{ github.sha }}
53+ docker push bobuhiro11/containerized-devstack-compute-1:${{ github.sha }}
54+ docker push bobuhiro11/containerized-devstack-compute-2:${{ github.sha }}
55+ - name : Push to Docker Hub for latest
56+ if : github.ref == 'refs/heads/main' && github.event_name != 'schedule'
57+ run : |
58+ docker commit controller bobuhiro11/containerized-devstack-controller:latest
59+ docker commit compute-1 bobuhiro11/containerized-devstack-compute-1:latest
60+ docker commit compute-2 bobuhiro11/containerized-devstack-compute-2:latest
61+ docker push bobuhiro11/containerized-devstack-controller:latest
62+ docker push bobuhiro11/containerized-devstack-compute-1:latest
63+ docker push bobuhiro11/containerized-devstack-compute-2:latest
You can’t perform that action at this time.
0 commit comments