Prepare universal workflow

This commit is contained in:
Alexey Pustovalov 2024-02-10 01:56:31 +09:00
parent 3c846d2c9d
commit a871670c76

View File

@ -399,7 +399,7 @@ jobs:
run: |
$base_image_file=$Env:BASE_BUILD_NAME + '_' + $Env:MATRIX_OS + '_' + $Env:MATRIX_COMPONENT
$base_tag = Get-Content $base_image_file -Raw
$build_base_image="$Env:MATRIX_COMPONENT/$Env:IMAGE_PREFIX$Env:BASE_BUILD_NAME@" + $base_tag
$build_base_image="$Env:DOCKER_REPOSITORY/$Env:IMAGE_PREFIX$Env:BASE_BUILD_NAME@" + $base_tag
echo "::group::Base image Info"
echo "base_tag=$base_tag"
@ -415,9 +415,9 @@ jobs:
OIDC_ISSUER: ${{ env.OIDC_ISSUER }}
IDENITY_REGEX: ${{ env.IDENITY_REGEX }}
run: |
cosign verify \
--certificate-oidc-issuer-regexp "$Env:OIDC_ISSUER" \
--certificate-identity-regexp "$Env:IDENITY_REGEX" \
cosign verify `
--certificate-oidc-issuer-regexp "$Env:OIDC_ISSUER" `
--certificate-identity-regexp "$Env:IDENITY_REGEX" `
"$Env:BASE_IMAGE"
- name: Build and push image
@ -643,9 +643,9 @@ jobs:
OIDC_ISSUER: ${{ env.OIDC_ISSUER }}
IDENITY_REGEX: ${{ env.IDENITY_REGEX }}
run: |
cosign verify \
--certificate-oidc-issuer-regexp "$Env:OIDC_ISSUER" \
--certificate-identity-regexp "$Env:IDENITY_REGEX" \
cosign verify `
--certificate-oidc-issuer-regexp "$Env:OIDC_ISSUER" `
--certificate-identity-regexp "$Env:IDENITY_REGEX" `
"$Env:BASE_IMAGE"
- name: Build and push image