-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
72 lines (67 loc) · 1.61 KB
/
buildspec.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: 0.2
env:
shell: bash
# variables:
# JAVA_HOME: "/usr/lib/jvm/java-8-openjdk-amd64"
# parameter-store:
# LOGIN_PASSWORD: /CodeBuild/dockerLoginPassword
phases:
install:
runtime-versions:
nodejs: latest
commands:
- echo Updating...
- apt-get update
pre_build:
commands:
- echo Installing npm Dependencies
- npm install
- wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz
- tar -xzf go1.21.0.linux-amd64.tar.gz
- ./go/bin/go version
build:
commands:
- echo Entered the build phase...
- echo Build started on `date`
- npm run build
- ./go/bin/go build -C server
post_build:
commands:
- echo Entered the post_build phase...
- echo Build completed on `date`
artifacts:
files:
# - '**/*'
- appspec.yml
- server/**/*
- scripts/*
# - public/**/*
- dist/**/*
name: rende-prod-$(date +%Y-%m-%d)
# reports:
# arn:aws:codebuild:your-region:your-aws-account-id:report-group/report-group-name-1:
# files:
# - "**/*"
# base-directory: 'target/tests/reports'
# discard-paths: no
# reportGroupCucumberJson:
# files:
# - 'cucumber/target/cucumber-tests.xml'
# discard-paths: yes
# file-format: CUCUMBERJSON # default is JUNITXML
# artifacts:
# files:
# - target/messageUtil-1.0.jar
# discard-paths: yes
# secondary-artifacts:
# artifact1:
# files:
# - target/artifact-1.0.jar
# discard-paths: yes
# artifact2:
# files:
# - target/artifact-2.0.jar
# discard-paths: yes
# cache:
# paths:
# - '/root/.m2/**/*'