Skip to content

Commit 048eb8f

Browse files
committed
Fix sudo installation into docker image.
Add Ubuntu 22.04 to build matrix.
1 parent 1a53264 commit 048eb8f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.azure-pipelines/package.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,34 @@ jobs:
1414
pool:
1515
vmImage: ubuntu-latest
1616
strategy:
17-
maxParallel: 2
17+
maxParallel: 3
1818
matrix:
1919
debian_stable_amd64:
2020
image: buildpack-deps:stable
2121
distribution: debian
2222
release: stable
2323
architecture: amd64
2424
lua_package: liblua5.4-dev
25-
ubuntu_bionic_amd64:
25+
ubuntu_focal_amd64:
2626
image: buildpack-deps:focal
2727
distribution: ubuntu
2828
release: focal
2929
architecture: amd64
3030
lua_package: liblua5.3-dev
31+
ubuntu_jammy_amd64:
32+
image: buildpack-deps:jammy
33+
distribution: ubuntu
34+
release: jammy
35+
architecture: amd64
36+
lua_package: liblua5.4-dev
3137
container:
3238
image: $[ variables['image'] ]
33-
options: "--name ci-container -v /usr/bin/docker:/tmp/docker:ro"
39+
options: "--name ci-container"
3440
steps:
3541
- script: >
36-
/tmp/docker exec -t -u 0 ci-container
42+
docker exec --tty --user 0 ci-container
3743
sh -c "apt update && DEBIAN_FRONTEND=noninteractive apt -o Dpkg::Options::="--force-confold" -y install sudo"
44+
target: host
3845
displayName: "Install sudo in container"
3946
- script: >
4047
sudo apt update && sudo DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends

0 commit comments

Comments
 (0)