DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Automating the Laravel 8 schema dump using GitHub Actions

3 years ago fidum.uk
Automating the Laravel 8 schema dump using GitHub Actions

Summary: This is a summary of an article originally published by Fidum. Read the full original article here →

The release of Laravel 8 introduced us to many great new features, and I think it is one of the best releases we have ever had! I couldn't wait to delete the migrations from some project where we had hundreds of migration files.

This post assumes that you have some working knowledge of GitHub Actions, their yaml workflow files, and that you know what the schema command does.

- name: Run migration and schema dump run: | php artisan migrate --force php artisan schema:dump --prune env: DB_HOST: 127.0.0.1 DB_PORT: ${{ job.services.mysql.ports }}

I hope this post has inspired you to automate your schema dumps or perhaps try automating some other parts of your release process.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com