forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
64 lines (63 loc) · 1.74 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
version: 0.2
#env:
#variables:
# key: "value"
# key: "value"
#parameter-store:
# key: "value"
# key: "value"
#secrets-manager:
# key: secret-id:json-key:version-stage:version-id
# key: secret-id:json-key:version-stage:version-id
#exported-variables:
# - variable
# - variable
#git-credential-helper: yes
#batch:
#fast-fail: true
#build-list:
#build-matrix:
#build-graph:
phases:
install:
commands:
#- cd ${CODEBUILD_SRC_DIR_Minerva}
#- if git branch -r | grep -q origin/"$CIRCLE_BRANCH"; then git checkout "$CIRCLE_BRANCH"; fi
- mkdir ~/.aws/
#pre_build:
#commands:
# - command
# - command
build:
commands:
# In my testing this CODEBUILD_WEBHOOK_HEAD_REF gives refs/heads/psdevel
# for psdevel branch, so this gives just psdevel
# Having this separate command means DOCKER_BRANCHNAME can be set
# manually in codebuild to get the same effect.
- cd ${CODEBUILD_SRC_DIR}/mewarpx/medocker/docker_ubuntu2004
- if [ -z "$DOCKER_REPOSITORY" ]; then export DOCKER_REPOSITORY="graviton-autobuild"; fi
- if [ -z "$DOCKER_BRANCHNAME" ]; then export DOCKER_BRANCHNAME=$(basename ${CODEBUILD_WEBHOOK_HEAD_REF}); fi
- bash ../docker_shared/make_docker.sh $DOCKER_REPOSITORY $DOCKER_BRANCHNAME
# - command
#post_build:
#commands:
# - command
# - command
#reports:
#report-name-or-arn:
#files:
# - location
# - location
#base-directory: location
#discard-paths: yes
#file-format: JunitXml | CucumberJson
#artifacts:
#files:
# - location
# - location
#name: $(date +%Y-%m-%d)
#discard-paths: yes
#base-directory: location
#cache:
#paths:
# - paths