dev: Don't run docker build on mrs as it will always fail

dev: Fixed remove-migration.ps1 script
This commit is contained in:
Kwoth
2024-05-17 11:18:37 +00:00
parent 22b7cf5e6c
commit 0083e9ef68
2 changed files with 5 additions and 3 deletions

View File

@@ -123,6 +123,8 @@ publish-medusa-package:
stage: publish-medusa-package
allow_failure: true
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
script:
- LAST_TAG=$(git describe --tags --abbrev=0)

View File

@@ -1,4 +1,4 @@
dotnet ef migrations remove -c SqliteContext -f
dotnet ef migrations remove -c PostgreSqlContext -f
dotnet ef migrations remove -c MysqlContext -f
dotnet ef migrations remove -c SqliteContext -f -p src/NadekoBot/NadekoBot.csproj
dotnet ef migrations remove -c PostgreSqlContext -f -p src/NadekoBot/NadekoBot.csproj
dotnet ef migrations remove -c MysqlContext -f -p src/NadekoBot/NadekoBot.csproj