mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-05-03 07:22:27 +00:00
b9224e2fb6
motivation: make sure examples are up tp date changes: * use swift:5.2 images instead of nighlies * compute dependencies to make zipfile as small as possible * make scripts more consistent
28 lines
941 B
Bash
Executable File
28 lines
941 B
Bash
Executable File
#!/bin/bash
|
|
##===----------------------------------------------------------------------===##
|
|
##
|
|
## This source file is part of the SwiftAWSLambdaRuntime open source project
|
|
##
|
|
## Copyright (c) 2017-2018 Apple Inc. and the SwiftAWSLambdaRuntime project authors
|
|
## Licensed under Apache License v2.0
|
|
##
|
|
## See LICENSE.txt for license information
|
|
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
|
|
##
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
##
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
source $DIR/config.sh
|
|
|
|
echo -e "\ndeploying $executable"
|
|
|
|
$DIR/build-and-package.sh "$executable"
|
|
|
|
echo "-------------------------------------------------------------------------"
|
|
echo "deploying using SAM"
|
|
echo "-------------------------------------------------------------------------"
|
|
|
|
sam deploy --template "./scripts/SAM/$executable-template.yml" $@
|