-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitbucket-pipelines.yml
46 lines (45 loc) · 1.56 KB
/
bitbucket-pipelines.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
options:
docker: true
pipelines:
default:
- step:
script:
- echo "Please use a GitFlow branch"
- exit 1;
branches:
develop:
- step:
name: build and publish the hspc-ubuntu-base image
script:
# get the ci scripts
- git clone https://bitbucket.org/hspconsortium/sandbox-ci.git
- export IMAGE_REPO=hspconsortium
- export IMAGE_NAME=hspc-ubuntu-base
- export IMAGE_VERSION=latest-java11
- export IMAGE_COORDINATES="$IMAGE_REPO/$IMAGE_NAME:$IMAGE_VERSION"; echo $IMAGE_COORDINATES
# build and publish the docker image
- . sandbox-ci/bitbucket-pipeline-scripts/docker-build-and-push.sh $IMAGE_COORDINATES
master:
- step:
name: build and publish the hspc-ubuntu-base image
script:
# get the ci scripts
- git clone https://bitbucket.org/hspconsortium/sandbox-ci.git
- export IMAGE_REPO=hspconsortium
- export IMAGE_NAME=hspc-ubuntu-base
- export IMAGE_VERSION=0.2.1
- export IMAGE_COORDINATES="$IMAGE_REPO/$IMAGE_NAME:$IMAGE_VERSION"; echo $IMAGE_COORDINATES
# build and publish the docker image
- . sandbox-ci/bitbucket-pipeline-scripts/docker-build-and-push.sh $IMAGE_COORDINATES
feature/*:
- step:
script:
- echo "all good"
release/*:
- step:
script:
- echo "all good"
hotfix/*:
- step:
script:
- echo "all good"