4949 run : |
5050 VERSION=$(head -n 1 Images/${{ matrix.container }}/${{ matrix.container }}.dockerfile | cut -d ":" -f 2- | tr -d " ")
5151 echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
52- cp Images/${{ matrix.container }}/start_${{ matrix.container }}. sh Images/test_plugin.sh Images/nginx/nginx_qiita.conf Images/${{ matrix.container }}/requirements.txt .
52+ cp Images/start_plugin. sh Images/test_plugin.sh Images/nginx/nginx_qiita.conf Images/${{ matrix.container }}/requirements.txt Images/nginx/start_nginx.sh .
5353 cp Images/qiita/config_portal.cfg Images/qiita/config_qiita_oidc.cfg Images/qiita/drop_workflows.py Images/qiita/start_plugin.py Images/qiita/start_qiita-initDB.sh Images/qiita/start_qiita.sh .
54- cp Images/plugin_collector/collect_configs.py Images/plugin_collector/fix_test_db.py Images/plugin_collector/stefan_cert.conf Images/plugin_collector/stefan_csr.conf .
54+ cp Images/plugin_collector/collect_configs.py Images/plugin_collector/fix_test_db.py Images/plugin_collector/stefan_cert.conf Images/plugin_collector/stefan_csr.conf Images/plugin_collector/start_plugin_collector.sh .
5555
5656 - name : Download certificates from job build_main
5757 uses : actions/download-artifact@v4
@@ -118,7 +118,7 @@ jobs:
118118 run : |
119119 VERSION=$(head -n 1 Images/${{ matrix.plugin }}/${{ matrix.plugin }}.dockerfile | cut -d ":" -f 2- | tr -d " ")
120120 echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
121- cp Images/${{ matrix.plugin }}/start_${{ matrix.plugin }} .sh Images/test_plugin.sh Images/${{ matrix.plugin }}/requirements.txt Images/trigger_noconda.py Images/trigger.py .
121+ cp Images/start_plugin .sh Images/test_plugin.sh Images/${{ matrix.plugin }}/requirements.txt Images/trigger_noconda.py Images/trigger.py .
122122
123123 - name : Download certificates from job build_main
124124 uses : actions/download-artifact@v4
@@ -193,7 +193,7 @@ jobs:
193193 run : |
194194 VERSION=$(head -n 1 Images/${{ matrix.multiplugin }}/${{ matrix.multiplugin }}.dockerfile | cut -d ":" -f 2- | tr -d " ")
195195 echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
196- cp Images/${{ matrix.multiplugin }}/start_${{ matrix.multiplugin }} .sh Images/test_plugin.sh Images/${{ matrix.multiplugin }}/requirements.txt Images/trigger_noconda.py Images/trigger.py .
196+ cp Images/start_plugin .sh Images/test_plugin.sh Images/${{ matrix.multiplugin }}/requirements.txt Images/trigger_noconda.py Images/trigger.py .
197197
198198 - name : Download certificates from job build_main
199199 uses : actions/download-artifact@v4
@@ -223,6 +223,12 @@ jobs:
223223 cache-from : type=gha,scope=tinqiita-${{ github.ref_name }}
224224 cache-to : type=gha,scope=tinqiita-${{ github.ref_name }},mode=max
225225
226+ - name : Prune build cache after build (saving disc space)
227+ run : |
228+ df -h /
229+ docker buildx prune -af
230+ df -h /
231+
226232 - name : adapt compose file to select specific plugin
227233 run : |
228234 if [[ "${{ matrix.multiplugin }}" == "qp-qiime2" ]]; then sed -i 's|- QIITA_PLUGINS="MATRIXPLUGIN:"|- QIITA_PLUGINS="${{ matrix.multiplugin }}:qtp-diversity:qtp-visualization:"|' compose_github.yaml; sed -i 's|MATRIXPLUGIN:|${{ matrix.multiplugin }}:\n condition: service_started\n qtp-diversity:\n condition: service_started\n qtp-visualization:|' compose_github.yaml; fi;
@@ -241,12 +247,8 @@ jobs:
241247
242248 - name : Push image to ghcr (only if tests passed)
243249 if : success()
244- uses : docker/build-push-action@v6
245- with :
246- context : .
247- push : true
248- file : Images/${{ matrix.multiplugin }}/${{ matrix.multiplugin }}.dockerfile
249- tags : ghcr.io/${{ github.repository }}/${{ matrix.multiplugin }}:testcandidate
250+ run : |
251+ docker push ghcr.io/${{ github.repository }}/${{ matrix.multiplugin }}:testcandidate
250252
251253 publish_images :
252254 needs :
0 commit comments