diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml index a30c04d..b20f6c2 100644 --- a/.github/workflows/docker_build.yml +++ b/.github/workflows/docker_build.yml @@ -162,17 +162,17 @@ jobs: | grep "${{ env.REPO }}" | xargs -I'{}' docker push {} - - name: Save image - run: | - cd dockerfiles/ - NEW_IMAGE=`docker compose config --images ${{ env.SERVICE }}` - docker save --output /tmp/image.tar $NEW_IMAGE + # - name: Save image + # run: | + # cd dockerfiles/ + # NEW_IMAGE=`docker compose config --images ${{ env.SERVICE }}` + # docker save --output /tmp/image.tar $NEW_IMAGE - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: isis_image - path: /tmp/image.tar + # - name: Upload artifact + # uses: actions/upload-artifact@v3 + # with: + # name: isis_image + # path: /tmp/image.tar - name: List images run: | @@ -192,23 +192,25 @@ jobs: name: Checkout uses: actions/checkout@v4 - - name: Download artifact - uses: actions/download-artifact@v3 - with: - name: isis_image - path: /tmp + # - name: Download artifact + # uses: actions/download-artifact@v3 + # with: + # name: isis_image + # path: /tmp + + # - name: Load image + # run: | + # docker load --input /tmp/image.tar + # docker image ls -a - - name: Load image - run: | - docker load --input /tmp/image.tar - docker image ls -a - name: Load .env file uses: xom9ikk/dotenv@v2 - name: Build image run: | + ISIS_IMAGE=${{ env.USER_ORG }}/jupyter-isis:${GITHUB_REF_NAME} cd dockerfiles/ - docker compose build ${{ env.SERVICE }} + docker compose build --build-arg BASE_IMAGE=${ISIS_IMAGE} ${{ env.SERVICE }} - name: Tag image if: ${{ github.event_name == 'push' }}