-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
30 lines (28 loc) · 793 Bytes
/
buildspec.yml
File metadata and controls
30 lines (28 loc) · 793 Bytes
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
30
version: 0.2
env:
secrets-manager:
DISCORD_SECRET_PROD: DiscordBot/Secret/Prod:DISCORD_SECRET
DISCORD_SECRET_BETA: DiscordBot/Secret/Beta:DISCORD_SECRET
phases:
install:
runtime-versions:
java: corretto17
pre_build:
commands:
- echo Writing secret $DISCORD_SECRET_PROD to file
- echo Writing secret $DISCORD_SECRET_BETA to file
- echo $DISCORD_SECRET_PROD > DISCORD_SECRET_Prod
- echo $DISCORD_SECRET_BETA > DISCORD_SECRET_Beta
build:
commands:
- echo Build started on `date`
- mvn install
post_build:
commands:
- echo Build finished on `date`
artifacts:
files:
- DISCORD_SECRET_*
- target/*
- scripts/*
- appspec.yml