Skip to content

Commit 62a74fe

Browse files
JaBistDuNarrischJaBistDuNarrisch
authored andcommitted
Install Microsoft GPG apt-key
1 parent bd4dc19 commit 62a74fe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/dotnetpull.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@ jobs:
6868
with:
6969
dotnet-version: |
7070
9.0.x
71-
- name: Install SQLCMD tools
71+
- name: Install Microsoft GPG apt-key
72+
run: |
73+
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
74+
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
75+
- name: Add Microsoft SQL Server repo
7276
run: |
73-
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
74-
curl https://packages.microsoft.com/config/ubuntu/25.10/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
77+
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/ubuntu/22.04/prod jammy main" > /etc/apt/sources.list/d/mssql-release.list'
7578
sudo apt-get update
79+
- name: Install SQLCMD tools
80+
run: |
7681
sudo ACCEPT_EULA=Y apt-get install -y mssql-tools unixodbc-dev
7782
echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
7883
source ~/.bashrc

0 commit comments

Comments
 (0)