Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
Add migration build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jmourell committed Sep 13, 2024
1 parent f355861 commit 2efb8c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
name: Deploy
runs-on: ubuntu-latest

env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -17,9 +20,15 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: '1.22'

- name: Install Goose
run: go install github.com/pressly/goose/v3/cmd/goose@latest

- name: Run bashscript
run: ./scripts/buildprod.sh

- name: Run migrations
run: ./scripts/migrateup.sh

- name: Auth
uses: 'google-github-actions/auth@v2'
Expand Down

0 comments on commit 2efb8c8

Please sign in to comment.