File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,16 @@ jobs:
2323 sudo rm -rf /usr/share/dotnet
2424 sudo rm -rf /usr/share/swift
2525 sudo apt-get clean
26+
2627 - uses : actions/checkout@v4
2728
28- - name : Get the VCell version from tags
29- id : version
30- run : echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
31-
3229 - name : set global environment variables
3330 run : |
31+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
32+ echo "FRIENDLY_TAG=${{ github.event.inputs.tag }}" >> $GITHUB_ENV
33+ else
34+ echo "FRIENDLY_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
35+ fi
3436 echo "VCELL_TAG=`git rev-parse --short HEAD`" >> $GITHUB_ENV
3537 echo "VCELL_REPO_NAMESPACE=ghcr.io/virtualcell" >> $GITHUB_ENV
3638 echo "VCELL_DEPLOY_REMOTE_DIR=/share/apps/vcell3/deployed_github" >> $GITHUB_ENV
@@ -118,9 +120,9 @@ jobs:
118120 - name : tag as latest and push to registry
119121 shell : bash
120122 run : |
121- for CONTAINER in vcell-api vcell-rest vcell-webapp-prod vcell-webapp-dev vcell-webapp-stage vcell-webapp-island vcell-batch vcell-opt vcell-clientgen vcell-data vcell-db vcell-mongo vcell-sched vcell-submit vcell-admin;\
123+ for CONTAINER in vcell-exporter vcell- api vcell-rest vcell-webapp-prod vcell-webapp-dev vcell-webapp-stage vcell-webapp-island vcell-batch vcell-opt vcell-clientgen vcell-data vcell-db vcell-mongo vcell-sched vcell-submit vcell-admin;\
122124 do docker tag ${VCELL_REPO_NAMESPACE}/$CONTAINER:${VCELL_TAG} ${VCELL_REPO_NAMESPACE}/$CONTAINER:latest;\
123- docker tag ${VCELL_REPO_NAMESPACE}/$CONTAINER:${VCELL_TAG} ${VCELL_REPO_NAMESPACE}/$CONTAINER:${{ steps.version.outputs.tag } };\
125+ docker tag ${VCELL_REPO_NAMESPACE}/$CONTAINER:${VCELL_TAG} ${VCELL_REPO_NAMESPACE}/$CONTAINER:${FRIENDLY_TAG };\
124126 docker push --all-tags ${VCELL_REPO_NAMESPACE}/$CONTAINER;\
125127 done
126128
You can’t perform that action at this time.
0 commit comments