Skip to content

Commit 3761cf3

Browse files
committed
Extract build alldeps docker image from matrix
1 parent 446d3b0 commit 3761cf3

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

.github/workflows/sycl-containers.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ jobs:
5151
file: ubuntu2204_intel_drivers
5252
tag: unstable
5353
build_args: "use_latest=true"
54-
- name: All Dependencies Docker image
55-
file: ubuntu2204_intel_drivers
56-
tag: build
57-
build_args: |
58-
base_image=ghcr.io/intel/llvm/ubuntu2204_build
59-
base_tag=latest
60-
use_latest=false
6154
steps:
6255
- name: Checkout
6356
uses: actions/checkout@v4
@@ -75,3 +68,29 @@ jobs:
7568
ghcr.io/${{ github.repository }}/${{ matrix.file }}:${{ matrix.tag }}
7669
build-args: ${{ matrix.build_args }}
7770

71+
build_all_deps_image:
72+
if: github.repository == 'intel/llvm'
73+
name: Build and Push Docker Image - Build With Drivers
74+
runs-on: ubuntu-22.04
75+
permissions:
76+
packages: write
77+
needs: build_and_push_images
78+
steps:
79+
- name: Checkout
80+
uses: actions/checkout@v4
81+
with:
82+
fetch-depth: 2
83+
- name: Build and Push Container
84+
uses: ./devops/actions/build_container
85+
with:
86+
push: ${{ github.event_name != 'pull_request' }}
87+
file: ubuntu2204_intel_drivers
88+
username: ${{ github.repository_owner }}
89+
password: ${{ secrets.GITHUB_TOKEN }}
90+
tags: |
91+
ghcr.io/${{ github.repository }}/ubuntu2204_alldeps:latest-${{ github.sha }}
92+
ghcr.io/${{ github.repository }}/ubuntu2204_alldeps:latest
93+
build_args: |
94+
base_image=ghcr.io/intel/llvm/ubuntu2204_build
95+
base_tag=latest
96+
use_latest=false

0 commit comments

Comments
 (0)