Multiply kubernetes configs
[releng.git] / jjb / pharos / shell / deploy-dashboard.sh
index 4ca41f4..46a79c3 100644 (file)
@@ -7,11 +7,13 @@
 # which accompanies this distribution, and is available at
 # http://www.apache.org/licenses/LICENSE-2.0
 ##############################################################################
-
 cp $HOME/config.env $WORKSPACE/dashboard
-cp $HOME/rsa.pub $WORKSPACE/dashboard
-cp $HOME/rsa.pem $WORKSPACE/dashboard
-
 cd $WORKSPACE/dashboard
+
 docker-compose pull
 docker-compose up -d
+
+# Copy JIRA keys into web container
+WEB_CONTAINER="$(docker ps --filter 'name=dg01' -q)"
+docker cp $HOME/rsa.pub $WEB_CONTAINER:/pharos_dashboard/account/
+docker cp $HOME/rsa.pem $WEB_CONTAINER:/pharos_dashboard/account/