Skip to content

Commit

Permalink
コマンド実行ユーザを指定。
Browse files Browse the repository at this point in the history
  • Loading branch information
Fumika Koyama committed Nov 7, 2023
1 parent 0b08856 commit 8f64ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/samples-dressca-backend.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ jobs:
- name: 結合テスト用にSQL Serverをセットアップ
run: |
sudo docker run mcr.microsoft.com/mssql/server:2022-latest \
sudo docker run --user root mcr.microsoft.com/mssql/server:2022-latest \
-e "ACCEPT_EULA=Y" \
-e "MSSQL_SA_PASSWORD=P@ssw0rd" \
-p 1433:1433 --name sql1 \
--hostname sql1 \
-d \
mcr.microsoft.com/mssql/server:2022-latest
sudo docker exec -it --user root sql1 "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P P@ssw0rd -q "CREATE DATABASE Dressca.Eshop;"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "P@ssw0rd" -q "CREATE DATABASE Dressca.Eshop;"
- id: run-tests
name: テストの実行
Expand Down

0 comments on commit 8f64ff2

Please sign in to comment.