From 5087cc3148c38868957534349ce3f94a94e1b0ef Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Thu, 10 Oct 2024 11:01:33 +0200 Subject: [PATCH] Fix broken build-push action (#279) Fixes #278 --- .github/workflows/docker_build_push_gwas.yml | 9 +++++++-- .github/workflows/docker_build_push_hello.yml | 2 +- .github/workflows/docker_build_push_python3.yml | 2 +- .github/workflows/docker_build_push_r.yml | 2 +- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker_build_push_gwas.yml b/.github/workflows/docker_build_push_gwas.yml index 636a3ef1..1c449107 100644 --- a/.github/workflows/docker_build_push_gwas.yml +++ b/.github/workflows/docker_build_push_gwas.yml @@ -1,5 +1,5 @@ # action to build and push the gwas Docker and Singularity image at each tag (for release) -name: container build push +name: build gwas Docker image on: push: @@ -16,6 +16,11 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + with: + lfs: 'true' + sparse-checkout: | + test-requirements.txt + tests - name: Docker meta id: meta @@ -59,7 +64,7 @@ jobs: py.test -v tests/test_gwas.py - name: Build and push - uses: docker/build-push-action@v5 + uses: docker/build-push-action@v6 with: context: "{{defaultContext}}:docker" push: ${{ github.event_name != 'pull_request' }} diff --git a/.github/workflows/docker_build_push_hello.yml b/.github/workflows/docker_build_push_hello.yml index dcbeac29..5b0b7048 100644 --- a/.github/workflows/docker_build_push_hello.yml +++ b/.github/workflows/docker_build_push_hello.yml @@ -1,5 +1,5 @@ # action to build and push the hello Docker and Singularity image at each tag (for release) -name: container build push +name: build & push hello Docker image on: push: diff --git a/.github/workflows/docker_build_push_python3.yml b/.github/workflows/docker_build_push_python3.yml index ccc3f573..b792f7c8 100644 --- a/.github/workflows/docker_build_push_python3.yml +++ b/.github/workflows/docker_build_push_python3.yml @@ -1,5 +1,5 @@ # action to build and push the python3 Docker and Singularity image at each tag (for release) -name: container build push +name: build & push python3 Docker image on: push: diff --git a/.github/workflows/docker_build_push_r.yml b/.github/workflows/docker_build_push_r.yml index 26c7270b..fe66fb4d 100644 --- a/.github/workflows/docker_build_push_r.yml +++ b/.github/workflows/docker_build_push_r.yml @@ -1,5 +1,5 @@ # action to build and push the r Docker and Singularity image at each tag (for release) -name: container build push +name: build & push r Docker image on: push: