Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Fix package build script. (#269)
Browse files Browse the repository at this point in the history
Add license.
If any steps fails, fail the build.
Increase the timeout for building all the extensions.
  • Loading branch information
chingor13 authored May 1, 2017
1 parent 3b946e9 commit e646931
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions deb-package-builder/build_packages.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
#!/bin/bash
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -ex

if [ -z "${GOOGLE_PROJECT_ID}" ]; then
echo "You need to set GOOGLE_PROJECT_ID envvar."
exit 1
fi

if [ -z "${PHP_VERSIONS}" ]; then
PHP_VERSIONS='7.1.4-1,7.0.18-1,5.6.30-2'
PHP_VERSIONS='7.1.4-2,7.0.18-2,5.6.30-3'
echo "Defaulting PHP Versions to: ${PHP_VERSIONS}"
fi

Expand All @@ -30,5 +45,5 @@ do
echo "Building packages for PHP ${VERSION}"
gcloud container builds submit . --config=build-packages.yaml \
--substitutions _PHP_VERSION=${VERSION},_IMAGE=${IMAGE},_BUCKET=${BUCKET} \
--timeout=30m
--timeout=40m
done

0 comments on commit e646931

Please sign in to comment.