Skip to content

Commit 691a3d3

Browse files
committed
Improve codefresh pipeline
1 parent 36fdf75 commit 691a3d3

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ USER $NB_USER
1010

1111
ENV INSTALLATION_FOLDER=$INSTALLATION_FOLDER
1212
ENV NETPYNE_VERSION=$NETPYNE_VERSION
13-
ENV WORKSPACE_VERSION=nov2020
14-
ENV JUPYTER_GEPPETTO_VERSION=$WORKSPACE_VERSION
13+
ENV WORKSPACE_VERSION=$WORKSPACE_VERSION
14+
ENV JUPYTER_GEPPETTO_VERSION=$JUPYTER_GEPPETTO_VERSION
1515
ENV PYGEPPETTO_VERSION=$PYGEPPETTO_VERSION
1616
ENV BUILD_ARGS=$BUILD_ARGS
1717

k8s/cf_pipeline.yaml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,28 @@ steps:
1010
repo: "MetaCell/NetPyNE-UI"
1111
revision: "${{CF_BRANCH}}"
1212
stage: "clone"
13-
when:
14-
branch:
15-
only:
16-
- "${{CF_BRANCH}}"
1713
BuildingNetPyNE-UI:
1814
title: Building NetPyNE-UI
1915
type: build
2016
stage: build
2117
image_name: netpyne-ui
2218
working_directory: ${{main_clone}}
23-
tag: '${{CF_SHORT_REVISION}}'
19+
tag: '${{CF_BRANCH_TAG_NORMALIZED}}- ${{CF_SHORT_REVISION}}-${{CF_BUILD_TIMESTAMP}}'
2420
build_arguments:
2521
- NETPYNE_VERSION=${{NETPYNE_VERSION}}
2622
- WORKSPACE_VERSION=${{WORKSPACE_VERSION}}
2723
- PYGEPPETTO_VERSION=${{PYGEPPETTO_VERSION}}
2824
- JUPYTER_GEPPETTO_VERSION=${{JUPYTER_GEPPETTO_VERSION}}
2925
- BUILD_ARGS=${{BUILD_ARGS}}
3026
registry: ${{REGISTRY}}
31-
when:
32-
branch:
33-
only:
34-
- "${{CF_BRANCH}}"
3527
BuildingHub:
3628
title: Building Hub
3729
type: build
3830
stage: "build"
3931
image_name: netpyne-hub
4032
working_directory: k8s
41-
tag: '${{CF_SHORT_REVISION}}'
33+
tag: '${{CF_BRANCH_TAG_NORMALIZED}}- ${{CF_SHORT_REVISION}}-${{CF_BUILD_TIMESTAMP}}'
4234
registry: ${{REGISTRY}}
43-
when:
44-
branch:
45-
only:
46-
- "${{CF_BRANCH}}"
4735
installing_chart:
4836
type: helm
4937
stage: deploy
@@ -61,8 +49,8 @@ steps:
6149
custom_value_files:
6250
- 'cf_values.yaml'
6351
custom_values:
64-
- 'hub_image_tag=${{CF_SHORT_REVISION}}'
65-
- 'singleuser_image_tag=${{CF_SHORT_REVISION}}'
52+
- 'hub_image_tag=${{CF_BRANCH_TAG_NORMALIZED}}- ${{CF_SHORT_REVISION}}-${{CF_BUILD_TIMESTAMP}}'
53+
- 'singleuser_image_tag=${{CF_BRANCH_TAG_NORMALIZED}}- ${{CF_SHORT_REVISION}}-${{CF_BUILD_TIMESTAMP}}'
6654
- 'singleuser_memory_limit=${{MEMORY_MAX}}'
6755
- 'singleuser_memory_guarantee=${{MEMORY_MIN}}'
6856
- 'proxy_secretToken=${{SECRET_TOKEN}}'

0 commit comments

Comments
 (0)