Skip to content

Instantly share code, notes, and snippets.

@lorisleiva
Last active September 18, 2024 11:24
Show Gist options
  • Save lorisleiva/216ee80e888f9d172503e031c0b5d193 to your computer and use it in GitHub Desktop.
Save lorisleiva/216ee80e888f9d172503e031c0b5d193 to your computer and use it in GitHub Desktop.
🐳 GitHub Actions using Laravel Docker
name: My Workflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container:
image: lorisleiva/laravel-docker:7.4
steps:
- uses: actions/checkout@v2
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Generate key
run: php artisan key:generate
# Your Laravel application is ready...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment