Skip to content

Commit bc05291

Browse files
Build Exporter Image in CI
1 parent c3af4d0 commit bc05291

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/CI-full.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: CI-application-containers
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: "Repository tag (e.g., 7.7.0.37)"
8+
required: true
59
release:
610
types: [published]
711

@@ -25,7 +29,11 @@ jobs:
2529
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
2630
- name: set global environment variables
2731
run: |
28-
echo "VCELL_TAG=`git rev-parse --short HEAD`" >> $GITHUB_ENV
32+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
33+
echo "TAG_NAME=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
34+
else
35+
echo "VCELL_TAG=`git rev-parse --short HEAD`" >> $GITHUB_ENV
36+
fi
2937
echo "VCELL_REPO_NAMESPACE=ghcr.io/virtualcell" >> $GITHUB_ENV
3038
echo "VCELL_DEPLOY_REMOTE_DIR=/share/apps/vcell3/deployed_github" >> $GITHUB_ENV
3139
echo "VCELL_MANAGER_NODE=vcellapi.cam.uchc.edu" >> $GITHUB_ENV

docker/build/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ build_rest() {
110110
}
111111

112112
build_exporter() {
113-
echo "building $repo/vcell-rest:$tag"
113+
echo "building $repo/vcell-exporter:$tag"
114114
echo "$SUDO_CMD docker buildx build --platform=linux/amd64 -f ../../vcell-rest/src/main/docker/Dockerfile.jvm --tag $repo/vcell-exporter:$tag ../../vcell-rest"
115115
mvn clean install -DskipTests -Dvcell.exporter=true -f ../../vcell-rest/pom.xml
116116
$SUDO_CMD docker buildx build --platform=linux/amd64 -f ../../vcell-rest/src/main/docker/Dockerfile.jvm --tag $repo/vcell-exporter:$tag ../../vcell-rest
@@ -303,11 +303,11 @@ case $target in
303303
;;
304304
all)
305305
# build_api && build_rest && build_db && build_sched && build_submit && build_data && build_mongo && build_batch && build_opt && build_clientgen && build_admin
306-
build_api && build_rest && build_webapp && build_db && build_sched && build_submit && build_data && build_mongo && build_batch && build_opt && build_clientgen && build_admin
306+
build_api && build_rest && build_exporter && build_webapp && build_db && build_sched && build_submit && build_data && build_mongo && build_batch && build_opt && build_clientgen && build_admin
307307
exit $?
308308
;;
309309
appservices)
310-
build_api && build_rest && build_webapp && build_db && build_sched && build_submit && build_data && build_mongo
310+
build_api && build_rest && build_exporter && build_webapp && build_db && build_sched && build_submit && build_data && build_mongo
311311
exit $?
312312
;;
313313
*)

0 commit comments

Comments
 (0)