Skip to content

Commit e33e979

Browse files
committed
chore: update cloudbuild.yaml
1 parent 282324a commit e33e979

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

.cl/cloudbuild.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
steps:
216
- id: enable-fuse-config
3-
name: 'gcr.io/cloud-builders/docker'
17+
name: 'ubuntu'
418
entrypoint: bash
519
args:
620
- '-c'
721
- |
22+
apt-get update && apt-get install -y sed
823
# Check if FUSE device exists
924
if [ ! -c /dev/fuse ]; then
1025
echo "Error: FUSE device /dev/fuse not found. FUSE might not be available in this environment."
@@ -23,12 +38,11 @@ steps:
2338
#user_allow_other
2439
EOF
2540
fi
41+
sudo sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf
2642

27-
# Modify /etc/fuse.conf to uncomment user_allow_other
28-
sed -i 's/#user_allow_other/user_allow_other/g' /etc/fuse.conf
2943
- id: run mysql integration tests
3044
name: golang:${_VERSION}
31-
env:
45+
env:
3246
- "IP_TYPE=${_IP_TYPE}"
3347
- "GOOGLE_CLOUD_PROJECT=${PROJECT_ID}"
3448
secretEnv: ['MYSQL_CONNECTION_NAME','MYSQL_USER','MYSQL_PASS','MYSQL_DB','POSTGRES_CONNECTION_NAME','POSTGRES_USER','POSTGRES_USER_IAM','POSTGRES_PASS','POSTGRES_DB','POSTGRES_CAS_CONNECTION_NAME','POSTGRES_CAS_PASS','POSTGRES_CUSTOMER_CAS_CONNECTION_NAME','POSTGRES_CUSTOMER_CAS_PASS','POSTGRES_CUSTOMER_CAS_DOMAIN_NAME','SQLSERVER_CONNECTION_NAME','SQLSERVER_USER','SQLSERVER_PASS','SQLSERVER_DB','IMPERSONATED_USER']

0 commit comments

Comments
 (0)