Skip to content

Commit 05f53c9

Browse files
committed
change command
1 parent b201457 commit 05f53c9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml

+7-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
timeout: 7200s # 2 hours
1616
substitutions:
1717
_TEST_IMAGE_ID: "test-image:latest"
18-
_VERSION_CODENAME: "Noble Numbat"
1918
steps:
2019
#- name: gcr.io/cloud-builders/docker
2120
# args: [
@@ -36,15 +35,15 @@ steps:
3635
args:
3736
- "-c"
3837
- |
39-
# Install docker, see https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
38+
# Install docker
4039
apt-get update
41-
apt-get install -y ca-certificates curl
42-
install -m 0755 -d /etc/apt/keyrings
43-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
44-
chmod a+r /etc/apt/keyrings/docker.asc
40+
apt-get install -y ca-certificates curl gnupg lsb-release
41+
mkdir -p /etc/apt/keyrings
42+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
43+
gpg --dearmor -o /etc/apt/keyrings/docker.gpg
4544
echo \
46-
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
47-
$(. /etc/os-release && echo "${_VERSION_CODENAME}") stable" | \
45+
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
46+
$(lsb_release -cs) stable" | \
4847
tee /etc/apt/sources.list.d/docker.list > /dev/null
4948
apt-get update
5049
apt-get -y install \

0 commit comments

Comments
 (0)