Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZogk authored Oct 24, 2024
1 parent 49dd52d commit 8b2d80e
Showing 1 changed file with 7 additions and 32 deletions.
39 changes: 7 additions & 32 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,14 @@ jobs:

- name: build
run: docker build -t cml_3.9 -f "pbj-workbench-python3.9-standard.Dockerfile" .
- name: info
run: docker info

- name: ls
run: ls

- name: image ls
run: docker image ls



- 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:
- 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 8b2d80e

Please sign in to comment.