-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbitbucket-pipelines.yml
More file actions
46 lines (42 loc) · 1.63 KB
/
bitbucket-pipelines.yml
File metadata and controls
46 lines (42 loc) · 1.63 KB
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
# You can specify a custom docker image from Docker Hub as your build environment.
image: python:3.7.2
pipelines:
default:
- step:
services:
- docker
script:
- export DOCKER_HUB_USERNAME=veitveit
- export DOCKER_HUB_PASSWORD=$dockerpasswd
- export IMAGE_NAME=veitveit/vsclust
- docker login --username $DOCKER_HUB_USERNAME --password $dockerpasswd
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t $IMAGE_NAME .
# authenticate with the Docker Hub registry
# push the new Docker image to the Docker registry
- docker push $IMAGE_NAME
# push a new version of the webserver to biolib
#- pip3 install pybiolib
#- cd webserver && biolib push SDU/VSClust
tags:
release-*:
- step:
services:
- docker
script:
- export DOCKER_HUB_USERNAME=veitveit
- export DOCKER_HUB_PASSWORD=$dockerpasswd
- export IMAGE_NAME=veitveit/vsclust:$BITBUCKET_TAG
- docker login --username $DOCKER_HUB_USERNAME --password $dockerpasswd
# build the Docker image (this will use the Dockerfile in the root of the repo)
- docker build -t $IMAGE_NAME .
# authenticate with the Docker Hub registry
# push the new Docker image to the Docker registry
- docker push $IMAGE_NAME
# push a new version of the webserver to biolib
#- pip3 install pybiolib
#- cd webserver && biolib push SDU/VSClust
definitions:
services:
docker:
memory: 2048