From 5ea8db187483dbaa3933e4fa4770774842d659bb Mon Sep 17 00:00:00 2001 From: gobikrishnan-s3141 <139465475+gobikrishnan-s3141@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:56:32 +0000 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 42 +++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index a056935..94360af 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,23 +2,47 @@ name: BioDock on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: - build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Python Docker image - run: docker build -f Py.dockerfile -t py:${{ github.sha }} + uses: docker/build-push-action@v5 + with: + context: . + file: Py.dockerfile + tags: py:${{ github.sha }} + push: false + - name: Build R Docker image - run: docker build -f R.dockerfile -t r:${{ github.sha }} + uses: docker/build-push-action@v5 + with: + context: . + file: R.dockerfile + tags: r:${{ github.sha }} + push: false + - name: Build minimal GNU/Linux Docker image - run: docker build -f sh.dockerfile -t sh:${{ github.sha }} + uses: docker/build-push-action@v5 + with: + context: . + file: sh.dockerfile + tags: sh:${{ github.sha }} + push: false + - name: Build bioinformatics dev Docker image - run: docker build -f bsh.dockerfile -t py:${{ github.sha }} + uses: docker/build-push-action@v5 + with: + context: . + file: bsh.dockerfile + tags: bsh:${{ github.sha }} + push: false