Nov 23, 2022
0
Level 1
Github Actions - docker: not found
Trying to install laravel vapor with github actions.
But it returns error while using vapor deploy command.
it returns: sh: docker: not found
Whats wrong with my vapor configurations? I'm sharing my github actions yml file below.
name: Build
on:
push:
branches: [master]
jobs:
build-php:
name: Build PHP
runs-on: ubuntu-latest
container: lorisleiva/laravel-docker:7.4
steps:
- uses: actions/checkout@v2
- run: composer install --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- run: npm ci
- name: Configure application
run: |
cp .env.example .env
php artisan cache:clear
php artisan config:clear
php artisan key:generate
deploy:
if: github.ref == 'refs/heads/master'
name: Deploy application
runs-on: ubuntu-latest
container: lorisleiva/laravel-docker:7.4
needs: [build-php]
env:
VAPOR_API_TOKEN: mykey
VAPOR_ENV: ${{ github.ref == 'refs/heads/master' && 'production' }}
steps:
- uses: docker-practice/actions-setup-docker@master
- run: composer install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --no-scripts
- run: vendor/bin/vapor deploy production
Please or to participate in this conversation.