-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Add container users to video group (#5101)
Accessing `/dev/dri` device (GPU) requires user to be in `video` group. Change containers to include `sycl` user into the group. Also change workflow to build containers in pre-commit without pushing to the registry to make sure containers are still buildable.
- Loading branch information
1 parent
b0f0f0b
commit cd722fc
Showing
4 changed files
with
63 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: 'Build Docker container' | ||
description: 'Build Docker container in a standard way' | ||
|
||
inputs: | ||
build-args: | ||
description: "List of build-time variables" | ||
required: false | ||
tags: | ||
description: "List of tags" | ||
required: true | ||
push: | ||
description: "Whether to push Docker image or not" | ||
required: false | ||
default: false | ||
username: | ||
description: "Registry user name" | ||
required: true | ||
password: | ||
description: "Registry user password" | ||
required: true | ||
file: | ||
description: "Dockerfile" | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ inputs.username }} | ||
password: ${{ inputs.password }} | ||
- name: Build and Push Container | ||
uses: docker/build-push-action@v2 | ||
with: | ||
push: ${{ inputs.push }} | ||
tags: ${{ inputs.tags }} | ||
build-args: ${{ inputs.build_args }} | ||
context: ${{ github.workspace }}/devops | ||
file: ${{ github.workspace }}/devops/containers/${{ inputs.file }}.Dockerfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters