mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

Workaround for libc updating during compilation (vs. base image) Also stop image publish for these images for the time being. Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
73 lines
2.1 KiB
YAML
73 lines
2.1 KiB
YAML
name: publish
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
image_tag:
|
|
default: "devel"
|
|
required: false
|
|
type: string
|
|
env:
|
|
no_base_check: "['intel-qat-plugin-kerneldrv', 'intel-idxd-config-initcontainer', 'crypto-perf', 'opae-nlb-demo']"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
image:
|
|
name: Build image
|
|
runs-on: ubuntu-22.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
image:
|
|
- intel-fpga-admissionwebhook
|
|
- intel-fpga-initcontainer
|
|
- intel-gpu-initcontainer
|
|
- intel-gpu-plugin
|
|
- intel-fpga-plugin
|
|
- intel-qat-initcontainer
|
|
- intel-qat-plugin
|
|
- intel-deviceplugin-operator
|
|
- intel-sgx-admissionwebhook
|
|
- intel-sgx-plugin
|
|
- intel-sgx-initcontainer
|
|
- intel-dsa-plugin
|
|
- intel-iaa-plugin
|
|
- intel-idxd-config-initcontainer
|
|
- intel-dlb-plugin
|
|
- intel-dlb-initcontainer
|
|
- intel-xpumanager-sidecar
|
|
|
|
# # Demo images
|
|
#- crypto-perf
|
|
#- opae-nlb-demo
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
check-latest: true
|
|
- run: make -e vendor
|
|
- name: Build image
|
|
env:
|
|
IMAGE_NAME: ${{ matrix.image }}
|
|
run: |
|
|
REG=intel/ make ${IMAGE_NAME} BUILDER=docker
|
|
- name: Trivy scan for image
|
|
uses: aquasecurity/trivy-action@master
|
|
with:
|
|
scan-type: image
|
|
image-ref: intel/${{ matrix.image }}:${{ inputs.image_tag }}
|
|
exit-code: 1
|
|
- name: Test image base layer
|
|
# Don't run base layer check for selected images
|
|
if: ${{ !contains(fromJson(env.no_base_check), matrix.image) }}
|
|
run: IMG=intel/${{ matrix.image }}:${{ inputs.image_tag }} make test-image-base-layer BUILDER=docker
|
|
- name: Login
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USER }}
|
|
password: ${{ secrets.DOCKERHUB_PASS }}
|
|
- name: Push
|
|
run: docker push intel/${{ matrix.image }}:${{ inputs.image_tag }}
|