Skip to content

Commit

Permalink
[gh-actions] share isis image to asp build job
Browse files Browse the repository at this point in the history
  • Loading branch information
chbrandt committed Nov 3, 2023
1 parent c66e33b commit f6f600a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,24 @@ jobs:
| grep "${{ env.REPO }}"
| xargs -I'{}' docker push {}
- name: Save image
run: |
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: List images
run: |
docker image ls -a
isis-asp:
needs: isis
runs-on: ubuntu-latest
env:
USER_ORG: ${{ vars.DOCKERHUB_USERNAME }}
Expand All @@ -168,6 +185,16 @@ jobs:
name: Checkout
uses: actions/checkout@v4

- 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 .env file
uses: xom9ikk/dotenv@v2

Expand Down

0 comments on commit f6f600a

Please sign in to comment.