Skip to content

Commit

Permalink
Add docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
maawad authored Jun 19, 2023
1 parent b6f1c44 commit 2d15c8f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ on:
jobs:
build:
runs-on: ubuntu-latest
env:
IMAGE_NAME: my-image-name:${{ github.run_number }}
DOCKER_DEVICES: "--device=/dev/kfd --device=/dev/dri"
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
run: docker build . --file Dockerfile --tag ${{ env.IMAGE_NAME }}
- name: Run the docker container
run: docker run --name rocm-container ${{ env.DOCKER_DEVICES }} ${{ env.IMAGE_NAME }}

0 comments on commit 2d15c8f

Please sign in to comment.