forked from aws/aws-for-fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec_integ.yml
28 lines (25 loc) · 1.01 KB
/
buildspec_integ.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: 0.2
phases:
install:
runtime-versions:
golang: 1.12
pre_build:
commands:
- echo Running the integration test
build:
commands:
# Get the default credentials and set as environment variables
- 'CREDS=`curl 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI`'
- 'export AWS_ACCESS_KEY_ID=`echo $CREDS | jq -r .AccessKeyId`'
- 'export AWS_SECRET_ACCESS_KEY=`echo $CREDS | jq -r .SecretAccessKey`'
- 'export AWS_SESSION_TOKEN=`echo $CREDS | jq -r .Token`'
# Pull the image that we built and pushed in the `Build` stage
- 'ecs-cli pull amazon/aws-for-fluent-bit-test:latest'
- 'docker tag ${AWS_ACCOUNT}.dkr.ecr.${AWS_REGION}.amazonaws.com/amazon/aws-for-fluent-bit-test:latest amazon/aws-for-fluent-bit:latest'
# List the images to do a double check
- 'docker images'
# Command to run the integration test
- 'make integ'
artifacts:
files:
- '**/*'