Prepare universal workflow

This commit is contained in:
Alexey Pustovalov 2024-02-11 02:49:33 +09:00
parent ddcb67c829
commit 5c55e44c84

View File

@ -11,7 +11,7 @@ defaults:
shell: bash
env:
AUTO_PUSH_IMAGES: false
AUTO_PUSH_IMAGES: ${{ vars.AUTO_PUSH_IMAGES }}
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
IMAGES_PREFIX: "zabbix-"
@ -405,13 +405,13 @@ jobs:
- name: Push to RedHat certification procedure
id: push_to_registry
if: ${{ env.AUTO_PUSH_IMAGES }}
if: ${{ env.AUTO_PUSH_IMAGES == 'true' }}
uses: redhat-actions/push-to-registry@v2
with:
tags: ${{ steps.meta.outputs.tags }}
- name: Preflight
if: ${{ env.AUTO_PUSH_IMAGES }}
if: ${{ env.AUTO_PUSH_IMAGES == 'true' }}
env:
PFLT_DOCKERCONFIG: /tmp/.docker_${{ matrix.build }}_${{ matrix.arch }}_${{ needs.init_build.outputs.sha_short }}
PFLT_CERTIFICATION_PROJECT_ID: ${{ steps.login_credentials.outputs.username }}
@ -437,7 +437,7 @@ jobs:
- name: Push to RedHat certification procedure
id: push_to_registry_all_tags
if: ${{ env.AUTO_PUSH_IMAGES }}
if: ${{ env.AUTO_PUSH_IMAGES == 'true' }}
uses: redhat-actions/push-to-registry@v2
with:
tags: ${{ steps.meta.outputs.tags }}