Skip to content

Commit 9387702

Browse files
committed
skip using -it on github actions
1 parent 3198e68 commit 9387702

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/sdk_container

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ function run_in_sniper() {
3232

3333
if [ -z ${GITHUB_ACTIONS} ]; then
3434
USERNS="--userns=keep-id"
35+
INTERACTIVE_FLAGS="-it"
3536
else
3637
USERNS=""
38+
INTERACTIVE_FLAGS=""
3739
fi
3840

3941
image="registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest"
@@ -44,7 +46,7 @@ function run_in_sniper() {
4446
--env "CCACHE_DIR=${my_ccache_dir}" \
4547
--env "GITHUB_ACTIONS=${GITHUB_ACTIONS}" \
4648
$USERNS \
47-
--rm -it \
49+
--rm $INTERACTIVE_FLAGS \
4850
--mount type=bind,\"source="${my_ccache_dir}"\",\"target="${my_ccache_dir}"\" \
4951
--mount type=bind,\"source="${mod_base_dir}"\",\"target="/tc2/"\" \
5052
"$image" \

0 commit comments

Comments
 (0)