Skip to content

Instantly share code, notes, and snippets.

@hendisantika
Forked from lorisleiva/workflow.yaml
Created November 18, 2023 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hendisantika/54e45c62379159bf595fdcf2e06e9fe2 to your computer and use it in GitHub Desktop.
Save hendisantika/54e45c62379159bf595fdcf2e06e9fe2 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