Supabase - Run Migrations Step Template#1676
Open
itsmebenwalker wants to merge 2 commits intoOctopusDeploy:masterfrom
Open
Supabase - Run Migrations Step Template#1676itsmebenwalker wants to merge 2 commits intoOctopusDeploy:masterfrom
itsmebenwalker wants to merge 2 commits intoOctopusDeploy:masterfrom
Conversation
|
Start Hyponome locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
This PR adds a new community step template for running Supabase database migrations as part of an Octopus Deploy deployment process.
There is currently no Supabase step template in the library. Teams using Supabase need a way to push schema migrations to their remote database during deployments without writing and maintaining a custom script from scratch.
Results
The Supabase - Run Migrations step template:
npmorsudorequired, works on Octopus hosted Ubuntu workers)SUPABASE_ACCESS_TOKENenvironment variable (no interactive login required)supabase db pushThe step expects a referenced package named
supabase-migrationsattached to the deployment step with Extract package enabled. The package must contain asupabase/migrations/directory at its root. This is documented in the template description.See public repo used to build/test this step.
Before
No Supabase migration step template existed in the library.
After
Successful deployment log:
Pre-requisites
Idis a valid GUID:937be757-a954-42e3-b315-670578a346e0Versionis1— new template, no prior version to increment from$Supabase(SupabaseProjectRef,SupabaseDbPassword,SupabaseAccessToken,SupabaseCliVersion)LastModifiedByis set toitsmebenwalkerexit 1, sensitive parameters marked asSensitive, status messages throughoutsupabasecategory created — still needs:supabase.png(200×200px) added tostep-templates/logos/case "supabase":added to thehumanizefunction ingulpfile.babel.js