mirror of
https://github.com/bitwarden/server.git
synced 2024-12-26 17:37:36 +01:00
[DEVOPS-1388] Dockerize the DB Migrator Utility (#2936)
* Remove unused workflow * Add dockerfile for MsSqlMigratorUtility * Change cmd * Fix dockerfile param
This commit is contained in:
parent
12f21b0c33
commit
0f09d46a3f
14
.github/workflows/build-migrator-cli.yml
vendored
14
.github/workflows/build-migrator-cli.yml
vendored
@ -1,14 +0,0 @@
|
||||
---
|
||||
name: Build Migrator CLI
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
||||
stub:
|
||||
name: Stub
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Stub
|
||||
run: echo "Stub"
|
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -126,6 +126,9 @@ jobs:
|
||||
- project_name: Scim
|
||||
base_path: ./bitwarden_license/src
|
||||
dotnet: true
|
||||
- project_name: MsSqlMigratorUtility
|
||||
base_path: ./util
|
||||
dotnet: true
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
@ -246,6 +249,10 @@ jobs:
|
||||
base_path: ./src
|
||||
docker_repos: [bitwardenprod.azurecr.io, bitwardenqa.azurecr.io]
|
||||
dotnet: true
|
||||
- project_name: MsSqlMigratorUtility
|
||||
base_path: ./util
|
||||
docker_repos: [bitwardenprod.azurecr.io, bitwardenqa.azurecr.io]
|
||||
dotnet: true
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
|
3
util/MsSqlMigratorUtility/.dockerignore
Normal file
3
util/MsSqlMigratorUtility/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
!obj/build-output/publish/*
|
||||
!obj/Docker/empty/
|
8
util/MsSqlMigratorUtility/Dockerfile
Normal file
8
util/MsSqlMigratorUtility/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||
|
||||
LABEL com.bitwarden.product="bitwarden"
|
||||
|
||||
WORKDIR /app
|
||||
COPY obj/build-output/publish .
|
||||
|
||||
CMD ["sh", "-c", "dotnet /app/MsSqlMigratorUtility.dll \"${MSSQL_CONN_STRING}\" -v"]
|
Loading…
Reference in New Issue
Block a user