Skip to content

Commit

Permalink
Use isis-image in hub for building isisasp instead of using artifacts…
Browse files Browse the repository at this point in the history
… I/O
  • Loading branch information
chbrandt committed Nov 14, 2023
1 parent 30beb9f commit b8691a2
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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' }}
Expand Down

0 comments on commit b8691a2

Please sign in to comment.