From f796511d88160005b6af6b3a12a8f036927b53f6 Mon Sep 17 00:00:00 2001 From: Lukas Forer Date: Sat, 25 May 2024 15:59:22 +0200 Subject: [PATCH] Add docker action to build image --- .github/workflows/ci-tests.yml | 12 +++++++++--- 01-sharding.sh | 20 -------------------- 2 files changed, 9 insertions(+), 23 deletions(-) delete mode 100755 01-sharding.sh diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 06c59fa..971abb5 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -30,9 +30,15 @@ jobs: run: | wget -qO- https://code.askimed.com/install/nf-test | bash -s 0.9.0-rc2 sudo mv nf-test /usr/local/bin/ - - - name: Build Docker - run: docker build -t genepi/nf-gwas . + + - name: Build Docker + uses: docker/build-push-action@v5 + with: + context: . + push: false + tags: "genepi/nf-gwas" + cache-from: type=gha + cache-to: type=gha,mode=max - name: Run Tests (Shard ${{ matrix.shard }}/${{ strategy.job-total }}) run: nf-test test --ci --shard ${{ matrix.shard }}/${{ strategy.job-total }} diff --git a/01-sharding.sh b/01-sharding.sh deleted file mode 100755 index 59c415f..0000000 --- a/01-sharding.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -mkdir -p experiments - -/Users/lukfor/Development/git/nf-test/target/nf-test-0.8.4/nf-test test --csv experiments/baseline.times.txt - -chunks=5 -for i in $(seq 1 $chunks) -do - echo "Run shard ${i}..." - /Users/lukfor/Development/git/nf-test/target/nf-test-0.8.4/nf-test test --csv experiments/shard.${i}.none.txt --shard ${i}/${chunks} --shard-strategy "none" - csvtk mutate2 -n shard -e "${i}" experiments/shard.${i}.none.txt | csvtk mutate2 -n strategy -e "'none'" > experiments/shard.${i}.none.final.txt - - /Users/lukfor/Development/git/nf-test/target/nf-test-0.8.4/nf-test test --csv experiments/shard.${i}.rr.txt --shard ${i}/${chunks} --shard-strategy "round-robin" - csvtk mutate2 -n shard -e "${i}" experiments/shard.${i}.rr.txt | csvtk mutate2 -n strategy -e "'round-robin'" > experiments/shard.${i}.rr.final.txt - - -done - -csvtk concat experiments/*.final.txt > experiments/shard.times.txt