-
Notifications
You must be signed in to change notification settings - Fork 133
/
buildspec_windows_fluent-bit.yml
29 lines (28 loc) · 1.25 KB
/
buildspec_windows_fluent-bit.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
29
version: 0.2
env:
exported-variables:
- PLUGINS_BUILD_VERSION
phases:
build:
commands:
# Switch to powershell.
- powershell
# Obtain CODEBUILD_SRC_DIR from environment variables.
- $CODEBUILD_SRC_DIR = [System.Environment]::GetEnvironmentVariable('CODEBUILD_SRC_DIR')
# Set the required variables
- $FLB_VERSION = [System.Environment]::GetEnvironmentVariable('FLB_VERSION')
- $AWS_FOR_FLUENT_BIT_VERSION = [System.Environment]::GetEnvironmentVariable('AWS_FOR_FLUENT_BIT_VERSION')
- $BUILD_NUMBER = [System.Environment]::GetEnvironmentVariable('BUILD_NUMBER')
- $OPENSSL_VERSION = [System.Environment]::GetEnvironmentVariable('OPENSSL_VERSION')
- $FLEX_BISON_VERSION = [System.Environment]::GetEnvironmentVariable('FLEX_BISON_VERSION')
# Invoke the build script
- Invoke-Expression -Command "${CODEBUILD_SRC_DIR}/scripts/build_windows_fluent_bit.ps1 -FLB_VERSION ${FLB_VERSION} -OPENSSL_VERSION ${OPENSSL_VERSION} -FLEX_BISON_VERSION ${FLEX_BISON_VERSION}"
post_build:
commands:
- $PLUGINS_BUILD_VERSION="${AWS_FOR_FLUENT_BIT_VERSION}/${BUILD_NUMBER}"
artifacts:
name: $PLUGINS_BUILD_VERSION
base-directory: $CODEBUILD_SRC_DIR
files:
- 'build/windows/*'
discard-paths: yes