Skip to content

Commit

Permalink
removing migrations bundles for now
Browse files Browse the repository at this point in the history
  • Loading branch information
beforan committed Jan 24, 2025
1 parent 1bfa75c commit 499db42
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 42 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/release.relay.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,42 +81,42 @@ jobs:
name: hutch-relay-${{ needs.init.outputs.source-version }}_${{ matrix.artifact == 'dotnet' && format('{0}-{1}', matrix.artifact, env.dotnet-version) || matrix.artifact }}
path: ${{ env.publish-dir }}

# Publish platform native EF Core migrations bundles
publish-migrations:
needs: [init]
runs-on: ubuntu-latest

env:
output-filename: migrate-relay-db

strategy:
matrix:
include:
- artifact: win-x64
file-extension: ".exe"
args: >-
-r win-x64
- artifact: linux-x64

steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.dotnet-version }}
- run: dotnet tool restore

- run: >-
dotnet ef migrations bundle
-p ${{ env.project }}
-s ${{ env.project }}
-o ${{ format('{0}{1}', env.output-filename, matrix.file-extension) }}
${{ matrix.args }}
--self-contained
- uses: actions/upload-artifact@v4
with:
name: ${{ format('migrations-{0}_{1}', needs.init.outputs.source-version, matrix.artifact) }}
path: ${{ format('{0}{1}', env.output-filename, matrix.file-extension) }}
# TODO: Publish platform native EF Core migrations bundles
# publish-migrations:
# needs: [init]
# runs-on: ubuntu-latest

# env:
# output-filename: migrate-relay-db

# strategy:
# matrix:
# include:
# - artifact: win-x64
# file-extension: ".exe"
# args: >-
# -r win-x64
# - artifact: linux-x64

# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-dotnet@v4
# with:
# dotnet-version: ${{ env.dotnet-version }}
# - run: dotnet tool restore

# - run: >-
# dotnet ef migrations bundle
# -p ${{ env.project }}
# -s ${{ env.project }}
# -o ${{ format('{0}{1}', env.output-filename, matrix.file-extension) }}
# ${{ matrix.args }}
# --self-contained

# - uses: actions/upload-artifact@v4
# with:
# name: ${{ format('migrations-{0}_{1}', needs.init.outputs.source-version, matrix.artifact) }}
# path: ${{ format('{0}{1}', env.output-filename, matrix.file-extension) }}

# Publish Edge Container Image to GHCR
publish-containers:
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.relay.versioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,12 @@ jobs:
- Hutch Relay for Linux (x64) native
- Hutch Relay for the .NET Runtime (cross platform)
### Database Migrations bundles
- Hutch Relay for Windows (x64) native
- Hutch Relay for Linux (x64) native
For other environments refer to the [documentation](https://health-informatics-uon.github.io/hutch/relay/deployment#database-migrations).
For Database migration guidance refer to the [documentation](https://health-informatics-uon.github.io/hutch/relay/deployment#database-migrations).
# TODO: ### Database Migrations bundles

# - Hutch Relay for Windows (x64) native
# - Hutch Relay for Linux (x64) native
generateReleaseNotes: true
prerelease: ${{ steps.version.outputs.prerelease != '' }}
makeLatest: false # TODO: can we reliably detect and automate this in future?
Expand Down

0 comments on commit 499db42

Please sign in to comment.