Skip to content

Commit

Permalink
fix bugs in docker-image.yml and test on two moudles
Browse files Browse the repository at this point in the history
  • Loading branch information
kohanlee1995 committed Dec 3, 2023
1 parent bd24d72 commit c5f7ce8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
modulenames="chipseq gwas"
echo "modulenames=$modulenames" >> $GITHUB_OUTPUT
# echo $modulenames | tr ' ' '\n' | sed 's/^/type=gha,scope=builder-/' | paste -s
echo "matrix={\"include\":$(jq --compact-output --null-input '$ARGS.positional' --args -- $modulenames)}" >> $GITHUB_OUTPUT
echo "matrix={\"include\":$(echo $modulenames | jq -R 'split(" ") | map({modulename: .})')}" >> $GITHUB_OUTPUT
build-module-images:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -73,6 +73,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: prune
run: docker system prune -af

Expand All @@ -83,7 +84,7 @@ jobs:
context: .
file: Dockerfile
push: false
tags: ${{ steps.meta.outputs.tags }} # TODO: do we need this?
#tags: ${{ steps.meta.outputs.tags }} # TODO: do we need this?
cache-to: type=gha,mode=max
target: builder
builder-args: |
Expand Down Expand Up @@ -115,6 +116,7 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: prune
run: docker system prune -af

Expand All @@ -140,4 +142,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
target: primary
target: primary

0 comments on commit c5f7ce8

Please sign in to comment.