-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuildspec.yml
26 lines (24 loc) · 973 Bytes
/
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
version: 0.1
phases:
install:
commands:
- sudo apt-get update
- sudo apt-get -y install jq
pre_build:
commands:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
build:
commands:
- echo Build started on `date`
- echo Building the Docker image...
- docker build -t gabriprat/hoshinplan:latest .
- docker tag gabriprat/hoshinplan:latest gabriprat/hoshinplan:CodeBuild-$CODEBUILD_BUILD_NUMBER
- docker tag gabriprat/hoshinplan:latest gabriprat/hoshinplan:latest
post_build:
commands:
- docker push gabriprat/hoshinplan:CodeBuild-$CODEBUILD_BUILD_NUMBER
- docker push gabriprat/hoshinplan:latest
- ./bin/bump-task.sh CodeBuild-$CODEBUILD_BUILD_NUMBER hoshinplan web
- ./bin/bump-task.sh CodeBuild-$CODEBUILD_BUILD_NUMBER hoshinplan-worker workers
- ./bin/bump-task.sh CodeBuild-$CODEBUILD_BUILD_NUMBER hoshinplan-clock clock
- echo Build completed on `date`