From 5c55e44c8490108a09e4eae88cc5f6e6bcf4e31a Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Sun, 11 Feb 2024 02:49:33 +0900 Subject: [PATCH] Prepare universal workflow --- .github/workflows/images_build_rhel.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/images_build_rhel.yml b/.github/workflows/images_build_rhel.yml index 9e1919698..914e01daa 100644 --- a/.github/workflows/images_build_rhel.yml +++ b/.github/workflows/images_build_rhel.yml @@ -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 }}