mirror of
https://github.com/actions/runner-images.git
synced 2025-12-10 02:46:51 +00:00
Add provisioner shell to list installed apt packages (#13368)
This commit is contained in:
8
images/ubuntu/scripts/build/list-dpkg.sh
Normal file
8
images/ubuntu/scripts/build/list-dpkg.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
################################################################################
|
||||
## File: list-dpkg.sh
|
||||
## Desc: List all installed dpkg packages
|
||||
################################################################################
|
||||
|
||||
echo "Listing all installed dpkg packages..."
|
||||
dpkg-query -W -f='${Package} ${Version}\n' | sort
|
||||
@@ -191,6 +191,11 @@ build {
|
||||
scripts = ["${path.root}/../scripts/build/configure-snap.sh"]
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
script = "${path.root}/../scripts/build/list-dpkg.sh"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
expect_disconnect = true
|
||||
|
||||
@@ -180,6 +180,11 @@ provisioner "shell" {
|
||||
scripts = ["${path.root}/../scripts/build/configure-snap.sh"]
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
script = "${path.root}/../scripts/build/list-dpkg.sh"
|
||||
}
|
||||
|
||||
provisioner "shell" {
|
||||
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
|
||||
expect_disconnect = true
|
||||
|
||||
Reference in New Issue
Block a user