File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 94
94
docker-compose run --rm php php /tests/requirements.php
95
95
docker-compose run --rm -w /yii2 php composer install --prefer-dist
96
96
docker-compose run --rm -w /yii2 php php -d error_reporting="E_ALL ^ E_DEPRECATED" vendor/bin/phpunit tests/framework/ --exclude db
97
- - name : Build and Push
97
+ - name : Login to Docker
98
98
if : startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
99
- run : |
100
- echo ${{ secrets.DOCKERHUB_PASS }} | docker login -u ${{ secrets.DOCKERHUB_USER }} --password-stdin
101
- docker-compose push
99
+ uses : docker/login-action@v1
100
+ with :
101
+ username : ${{ secrets.DOCKERHUB_USER }}
102
+ password : ${{ secrets.DOCKERHUB_PASS }}
103
+ - name : Push docker image
104
+ if : startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
105
+ run : docker-compose push
You can’t perform that action at this time.
0 commit comments