Skip to content

Commit

Permalink
[CI][OSSF] Allow package write in sycl-container build (#13245)
Browse files Browse the repository at this point in the history
After #13173 , we are not able to push
container images.
See
https://github.com/intel/llvm/actions/runs/8485593107/job/23250649681

```
------
 > pushing ghcr.io/intel/llvm/ubuntu2204_base:2f03ef85fee5e867c8250d535f561f2e52e5260c with docker:
------
ERROR: denied: installation not allowed to Write organization package
Error: buildx failed with: ERROR: denied: installation not allowed to Write organization package
```

We need to update the docker images, so need to write packages.

Push permission tested through non PR workflow run here:
https://github.com/intel/llvm/actions/runs/8516878870
  • Loading branch information
jsji authored Apr 2, 2024
1 parent 323104f commit 9f4ee47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/sycl-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jobs:
if: github.repository == 'intel/llvm'
name: Base Ubuntu 22.04 Docker image
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -47,6 +49,8 @@ jobs:
if: github.repository == 'intel/llvm'
name: Build Ubuntu Docker image
runs-on: ubuntu-22.04
permissions:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -69,6 +73,8 @@ jobs:
if: github.repository == 'intel/llvm'
name: Intel Drivers Ubuntu 22.04 Docker image
runs-on: ubuntu-22.04
permissions:
packages: write
needs: base_image_ubuntu2204
steps:
- name: Checkout
Expand Down Expand Up @@ -107,6 +113,8 @@ jobs:
if: github.repository == 'intel/llvm'
name: Intel Drivers (unstable) Ubuntu 22.04 Docker image
runs-on: ubuntu-22.04
permissions:
packages: write
needs: base_image_ubuntu2204
steps:
- name: Checkout
Expand Down

0 comments on commit 9f4ee47

Please sign in to comment.