Skip to content

Commit

Permalink
#8082: add github action to load docker image artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed May 10, 2024
1 parent 5719ab8 commit 5287d23
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 deletions.
23 changes: 23 additions & 0 deletions .github/actions/load-docker-image/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Load Docker Image"
description: "Downloads and loads Docker image artifact"
inputs:
artifact-name:
description: 'The name of the Docker image artifact to download.'
required: true
default: 'docker_image.tar.gz'
path:
description: 'The path where the Docker image artifact will be downloaded.'
required: true
default: '/tmp'
runs:
using: "composite"
steps:
- name: Download Docker image
uses: actions/download-artifact@v2
with:
name: ${{ inputs.artifact-name }}
path: ${{ inputs.path }}

- name: Load Docker image
run: |
gunzip -c ${{ inputs.path }}/${{ inputs.artifact-name }} | docker load
11 changes: 4 additions & 7 deletions .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,11 @@ jobs:
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- uses: ./.github/actions/install-python-deps
- name: Download Docker image
uses: actions/download-artifact@v2
- name: Load Docker Image
uses: ./.github/actions/load-docker-image
with:
name: docker_image.tar.gz
path: /tmp
- name: Load Docker image
run: |
gunzip -c /tmp/docker_image.tar.gz | docker load
artifact-name: 'docker_image.tar.gz'
path: '/tmp'
- name: Build tt-metal cmake build
run: |
./scripts/docker/run_docker_cmd.sh -d "cmake -B build"
Expand Down

0 comments on commit 5287d23

Please sign in to comment.