Skip to content

Commit ab0ea34

Browse files
committed
save space with qp-qiime2
1 parent 05dbb2c commit ab0ea34

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/buildContainer.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)