Skip to content

Commit 23f17dc

Browse files
authored
[CI] Build sycl-rel container (#19596)
This PR introduces new workflow to build sycl-rel container.
1 parent a50acd0 commit 23f17dc

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI sycl-rel container
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
paths:
7+
- 'devops/actions/build_container/**'
8+
- 'devops/containers/release_build.DockerFile'
9+
- 'devops/scripts/create-sycl-user.sh'
10+
- '.github/workflows/sycl-rel-container.yaml'
11+
12+
permissions: read-all
13+
14+
jobs:
15+
build_and_push_images:
16+
if: github.repository == 'intel/llvm'
17+
name: Build and Push Docker Images
18+
runs-on: [Linux, build]
19+
permissions:
20+
packages: write
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
sparse-checkout: devops
26+
27+
- name: Build and Push Container
28+
uses: ./devops/actions/build_container
29+
with:
30+
push: ${{ github.event_name != 'pull_request' }}
31+
file: release_build
32+
username: ${{ github.repository_owner }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
tags: |
35+
ghcr.io/${{ github.repository }}/release_build:latest-${{ github.sha }}
36+
ghcr.io/${{ github.repository }}/release_build:latest

0 commit comments

Comments
 (0)