mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-12 00:28:50 +01:00
Prepare universal workflow
This commit is contained in:
parent
ff929c8ccf
commit
d69d775609
9
.github/workflows/images_build_rhel.yml
vendored
9
.github/workflows/images_build_rhel.yml
vendored
@ -11,6 +11,8 @@ defaults:
|
|||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
AUTO_PUSH_IMAGES: false
|
||||||
|
|
||||||
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
|
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
|
||||||
IMAGES_PREFIX: "zabbix-"
|
IMAGES_PREFIX: "zabbix-"
|
||||||
BASE_BUILD_NAME: "build-base"
|
BASE_BUILD_NAME: "build-base"
|
||||||
@ -166,7 +168,7 @@ jobs:
|
|||||||
build_base_database:
|
build_base_database:
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
needs: [ "build_base", "init_build"]
|
needs: [ "build_base", "init_build"]
|
||||||
name: Build ${{ matrix.build }} base on RHEL
|
name: Build ${{ matrix.build }} base on RHEL (${{ matrix.arch }})
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -218,7 +220,7 @@ 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 }}/${{ matrix.build }}/rhel
|
context: ${{ env.DOCKERFILES_DIRECTORY }}/build-${{ matrix.build }}/rhel
|
||||||
layers: false
|
layers: false
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
@ -336,11 +338,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Push to RedHat certification procedure
|
- name: Push to RedHat certification procedure
|
||||||
id: push_to_registry
|
id: push_to_registry
|
||||||
|
if: ${{ env.AUTO_PUSH_IMAGES }}
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
|
if: ${{ env.AUTO_PUSH_IMAGES }}
|
||||||
env:
|
env:
|
||||||
PFLT_DOCKERCONFIG: /tmp/.docker_${{ matrix.build }}_${{ needs.init_build.outputs.sha_short }}
|
PFLT_DOCKERCONFIG: /tmp/.docker_${{ matrix.build }}_${{ needs.init_build.outputs.sha_short }}
|
||||||
PFLT_CERTIFICATION_PROJECT_ID: ${{ steps.login_credentials.outputs.username }}
|
PFLT_CERTIFICATION_PROJECT_ID: ${{ steps.login_credentials.outputs.username }}
|
||||||
@ -365,6 +369,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push to RedHat certification procedure
|
- name: Push to RedHat certification procedure
|
||||||
id: push_to_registry_all_tags
|
id: push_to_registry_all_tags
|
||||||
|
if: ${{ env.AUTO_PUSH_IMAGES }}
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
Loading…
Reference in New Issue
Block a user