From 7e63edd4c4e8b37950f744ac9546032a2ac95aeb Mon Sep 17 00:00:00 2001 From: js2264 Date: Mon, 22 Jan 2024 19:34:42 +0100 Subject: [PATCH] ci: fix docker IMG hash --- .github/workflows/biocbook.yml | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/biocbook.yml b/.github/workflows/biocbook.yml index 99eea96..992e605 100644 --- a/.github/workflows/biocbook.yml +++ b/.github/workflows/biocbook.yml @@ -57,30 +57,30 @@ jobs: ${{ env.pkgversion }} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'devel') }} - - name: 📦 Install, build and check package in local Docker image - id: docker - uses: docker/build-push-action@v5 - with: - context: . - load: true - tags: ${{ steps.meta.outputs.tags }} - build-args: | - BIOC_VERSION=${{ github.ref_name }} + # - name: 📦 Install, build and check package in local Docker image + # id: docker + # uses: docker/build-push-action@v5 + # with: + # context: . + # load: true + # tags: ${{ steps.meta.outputs.tags }} + # build-args: | + # BIOC_VERSION=${{ github.ref_name }} - - name: 🚀 Push local Docker image to ghcr.io - uses: docker/build-push-action@v5 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - build-args: | - BIOC_VERSION=${{ github.ref_name }} + # - name: 🚀 Push local Docker image to ghcr.io + # uses: docker/build-push-action@v5 + # with: + # context: . + # push: true + # tags: ${{ steps.meta.outputs.tags }} + # build-args: | + # BIOC_VERSION=${{ github.ref_name }} - name: 📚 Recover pkg artifacts generated during build in local Docker container (pkg bundle and book) env: IMG: ${{ steps.docker.outputs.ImageID }} run: | - SHA=$(docker container create ${{ env.IMG }}) + SHA=$(docker container create docker pull ghcr.io/js2264/ohca:latest) docker container cp ${SHA}:/${{ env.Pkgname }}_${{ env.pkgversion }}.tar.gz . tar --extract --gzip --file ${{ env.Pkgname }}_${{ env.pkgversion }}.tar.gz echo bundle_path=${{ env.Pkgname }}_${{ env.pkgversion }}.tar.gz >> "${GITHUB_ENV}"