Skip to content

Commit

Permalink
test share image
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZogk authored Oct 24, 2024
1 parent 4582947 commit 49dd52d
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,35 @@ jobs:
- name: image ls
run: docker image ls

test2:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v6
with:
tags: cml_3.9:latest
outputs: type=docker,dest=/tmp/myimage.tar

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: myimage
path: /tmp/myimage.tar

use:
runs-on: ubuntu-latest
needs: build_cml
steps:
- uses: actions/checkout@v3
- name: check
run: ls
- name: image ls
run: docker image ls
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: myimage
path: /tmp

- name: Load image
run: |
docker load --input /tmp/myimage.tar
docker image ls -a

0 comments on commit 49dd52d

Please sign in to comment.