Skip to content

Instantly share code, notes, and snippets.

@lorisleiva
Last active November 18, 2023 04:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • 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