forked from awslabs/ssosync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving them to code pipeline action definitions.
- Loading branch information
1 parent
3d7671e
commit 02c1b78
Showing
3 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,26 @@ | ||
version: 0.2 | ||
|
||
env: | ||
variables: | ||
TEMPLATE: template.yaml | ||
PACKAGED_TEMPLATE: packaged.yaml | ||
APP_NAME: ssosync | ||
phases: | ||
install: | ||
commands: | ||
# Print all environment variables (handy for AWS CodeBuild logs) | ||
- env | ||
|
||
# Update sam to latest version | ||
- wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip | ||
- unzip aws-sam-cli-linux-x86_64.zip -d sam-installation | ||
- wget -q https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip | ||
- unzip -q aws-sam-cli-linux-x86_64.zip -d sam-installation | ||
- sudo ./sam-installation/install --update | ||
- rm -rf ./sam-installation aws-sam-cli-linux-x86_64.zip | ||
|
||
build: | ||
commands: | ||
# Package our application with AWS SAM | ||
- sam package --s3-bucket ${S3BUCKET} | ||
- sam package --s3-bucket ${S3Bucket} --output-template-file ${Packaged} | ||
|
||
post_build: | ||
commands: | ||
- ls -la | ||
|
||
artifacts: | ||
files: | ||
- packaged.yaml | ||
- ${Packaged} |