mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-25 04:11:21 +02:00
RHEL build test
This commit is contained in:
parent
332c1d4e71
commit
7339406406
29
.github/workflows/images_build_rhel.yml
vendored
29
.github/workflows/images_build_rhel.yml
vendored
@ -222,7 +222,7 @@ jobs:
|
|||||||
echo "$IMAGE_TAG" > "${CACHE_FILE_NAME}_tag"
|
echo "$IMAGE_TAG" > "${CACHE_FILE_NAME}_tag"
|
||||||
|
|
||||||
- name: Cache image digest
|
- name: Cache image digest
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
||||||
@ -286,7 +286,7 @@ jobs:
|
|||||||
type=sha,suffix=-${{ steps.lc.outputs.arch }}
|
type=sha,suffix=-${{ steps.lc.outputs.arch }}
|
||||||
|
|
||||||
- name: Download SHA256 tag of ${{ env.BASE_BUILD_NAME }}:${{ matrix.arch }}
|
- name: Download SHA256 tag of ${{ env.BASE_BUILD_NAME }}:${{ matrix.arch }}
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
||||||
@ -362,7 +362,7 @@ jobs:
|
|||||||
echo "$IMAGE_TAG" > "${CACHE_FILE_NAME}_tag"
|
echo "$IMAGE_TAG" > "${CACHE_FILE_NAME}_tag"
|
||||||
|
|
||||||
- name: Cache image digest
|
- name: Cache image digest
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/save@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ matrix.build }}_${{ matrix.arch }}_digest
|
${{ matrix.build }}_${{ matrix.arch }}_digest
|
||||||
@ -457,7 +457,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Download SHA256 tag of ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.arch }}
|
- name: Download SHA256 tag of ${{ steps.build_base_image.outputs.build_base }}:${{ matrix.arch }}
|
||||||
if: ${{ matrix.build != 'snmptraps' }}
|
if: ${{ matrix.build != 'snmptraps' }}
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
${{ steps.build_base_image.outputs.build_base }}_${{ matrix.arch }}_digest
|
${{ steps.build_base_image.outputs.build_base }}_${{ matrix.arch }}_digest
|
||||||
@ -571,15 +571,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
- name: Cleanup artifacts
|
- name: Post build image
|
||||||
|
if: ${{ always() }}
|
||||||
|
env:
|
||||||
|
TAGS: ${{ steps.meta.outputs.tags }}
|
||||||
|
run: |
|
||||||
|
echo "::group::Result"
|
||||||
|
echo "$TAGS" | while IFS= read -r image_name ; do podman rmi -i -f "$image_name"; done
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
- name: Post Preflight
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
env:
|
env:
|
||||||
PREFLIGHT_IMAGE: ${{ env.PREFLIGHT_IMAGE }}
|
PREFLIGHT_IMAGE: ${{ env.PREFLIGHT_IMAGE }}
|
||||||
PFLT_ARTIFACTS: ${{ env.PFLT_ARTIFACTS }}
|
PFLT_ARTIFACTS: ${{ env.PFLT_ARTIFACTS }}
|
||||||
TAGS: ${{ steps.meta.outputs.tags }}
|
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Post build actions"
|
echo "::group::Result"
|
||||||
echo "$TAGS" | while IFS= read -r image_name ; do podman rmi -i -f "$image_name"; done
|
|
||||||
rm -rf "$PFLT_ARTIFACTS"
|
rm -rf "$PFLT_ARTIFACTS"
|
||||||
podman rmi -i -f "$PREFLIGHT_IMAGE"
|
podman rmi -i -f "$PREFLIGHT_IMAGE"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
@ -592,13 +599,13 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build: [build-mysql, build-sqlite3]
|
build: [build-mysql, build-sqlite3]
|
||||||
arch: [X64, ARM64]
|
arch: ${{ fromJson(needs.init_build.outputs.platforms) }}
|
||||||
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
|
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
|
||||||
if: ${{ always() && needs.build_base_database.result == 'success' }}
|
if: ${{ always() && needs.build_base_database.result == 'success' }}
|
||||||
permissions: {}
|
permissions: {}
|
||||||
steps:
|
steps:
|
||||||
- name: Download SHA256 tag of ${{ matrix.build }}:${{ matrix.arch }}
|
- name: Download SHA256 tag of ${{ matrix.build }}:${{ matrix.arch }}
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: ${{ matrix.build }}_${{ matrix.arch }}_digest
|
path: ${{ matrix.build }}_${{ matrix.arch }}_digest
|
||||||
key: ${{ matrix.build }}-${{ matrix.arch }}-${{ github.run_id }}
|
key: ${{ matrix.build }}-${{ matrix.arch }}-${{ github.run_id }}
|
||||||
@ -614,7 +621,7 @@ jobs:
|
|||||||
rm -rf "${IMAGE_DIR}/${BASE_TAG}"
|
rm -rf "${IMAGE_DIR}/${BASE_TAG}"
|
||||||
|
|
||||||
- name: Download SHA256 tag of ${{ env.BASE_BUILD_NAME }}:${{ matrix.arch }}
|
- name: Download SHA256 tag of ${{ env.BASE_BUILD_NAME }}:${{ matrix.arch }}
|
||||||
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
path: ${{ env.BASE_BUILD_NAME }}_${{ matrix.arch }}_digest
|
||||||
key: ${{ env.BASE_BUILD_NAME }}-${{ matrix.arch }}-${{ github.run_id }}
|
key: ${{ env.BASE_BUILD_NAME }}-${{ matrix.arch }}-${{ github.run_id }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user