File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11on : [push]
22
3- env :
4- REGISTRY_DOMAIN : ${{ secrets.REGISTRY_DOMAIN }}
5-
63jobs :
74 build :
85 name : Build/test and push
96 runs-on : ubuntu-latest
107 env :
8+ REGISTRY_DOMAIN : ${{ secrets.REGISTRY_DOMAIN }}
119 DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
1210 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
1311 steps :
3836 run : |
3937 docker-compose -f docker-compose.actions.yml pull
4038 docker-compose -f docker-compose.actions.yml up -d
41- while [[ "$(wget --server-response http://localhost/api/ping -O ip-tmp 2>&1| grep -c 'HTTP/1.1 200 OK')" -ne 200 ]]; do sleep 3; echo "Waiting API to be available..."; done
39+ while [[ "$(wget --server-response http://localhost/api/ping -O ip-tmp 2>&1| grep -c 'HTTP/1.1 200 OK')" -ne 1 ]]; do sleep 3; echo "Waiting API to be available..."; done
4240 - name : Lint API
4341 run : |
4442 docker exec api composer run sniff
@@ -52,10 +50,10 @@ jobs:
5250 - name : Unit test backend
5351 run : |
5452 docker exec backend npm run test
55- - name : Lint frontend
53+ - name : Lint frontend
5654 run : |
5755 docker exec frontend npm run lint
58- - name : Unit test frontend
56+ - name : Unit test frontend
5957 run : |
6058 docker exec frontend npm run test
6159 - name : Build api latest image
7573 run : |
7674 cd frontend
7775 docker build . --target production-stage -t $REGISTRY_DOMAIN/chrisleekr/yii2-angular-boilerplate:frontend-latest
78- docker push $REGISTRY_DOMAIN/chrisleekr/yii2-angular-boilerplate:frontend-latest
76+ docker push $REGISTRY_DOMAIN/chrisleekr/yii2-angular-boilerplate:frontend-latest
You can’t perform that action at this time.
0 commit comments