mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-17 02:10:49 +01:00
Prepare universal workflow
This commit is contained in:
parent
7b62b1ccd2
commit
5c301b3aab
14
.github/workflows/images_build_rhel.yml
vendored
14
.github/workflows/images_build_rhel.yml
vendored
@ -179,7 +179,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build: [mysql, sqlite3]
|
build: [build-mysql, build-sqlite3]
|
||||||
arch: [X64, ARM64]
|
arch: [X64, ARM64]
|
||||||
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
|
runs-on: [self-hosted, linux, "${{ matrix.arch }}"]
|
||||||
permissions:
|
permissions:
|
||||||
@ -202,7 +202,7 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
with:
|
with:
|
||||||
images: zabbix-build-${{ matrix.build }}
|
images: ${{IMAGES_PREFIX}}${{ matrix.build }}
|
||||||
tags: |
|
tags: |
|
||||||
type=sha,suffix=-${{ steps.lc.outputs.arch }}
|
type=sha,suffix=-${{ steps.lc.outputs.arch }}
|
||||||
|
|
||||||
@ -234,17 +234,17 @@ jobs:
|
|||||||
id: build_image
|
id: build_image
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
context: ${{ env.DOCKERFILES_DIRECTORY }}/build-${{ matrix.build }}/rhel
|
context: ${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel
|
||||||
layers: false
|
layers: false
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
${{ env.DOCKERFILES_DIRECTORY }}/build-${{ matrix.build }}/rhel/Dockerfile
|
${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel/Dockerfile
|
||||||
build-args: BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }}
|
build-args: BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }}
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
env:
|
env:
|
||||||
IMAGE_TAG: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
IMAGE_TAG: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
|
||||||
CACHE_FILE_NAME: build_${{ matrix.build }}_${{ matrix.arch }}
|
CACHE_FILE_NAME: ${{ matrix.build }}_${{ matrix.arch }}
|
||||||
run: |
|
run: |
|
||||||
DIGEST=$(podman inspect ${IMAGE_TAG} --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
|
DIGEST=$(podman inspect ${IMAGE_TAG} --format "{{ index .RepoDigests 0}}" | cut -d '@' -f2)
|
||||||
echo "::group::Image digest"
|
echo "::group::Image digest"
|
||||||
@ -259,8 +259,8 @@ jobs:
|
|||||||
- name: Cache image digest
|
- name: Cache image digest
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: build_${{ matrix.build }}_${{ matrix.arch }}
|
path: ${{ matrix.build }}_${{ matrix.arch }}
|
||||||
key: build-${{ matrix.build }}-${{ matrix.arch }}-${{ github.run_id }}
|
key: ${{ matrix.build }}-${{ matrix.arch }}-${{ github.run_id }}
|
||||||
|
|
||||||
build_images:
|
build_images:
|
||||||
timeout-minutes: 90
|
timeout-minutes: 90
|
||||||
|
Loading…
Reference in New Issue
Block a user