Merge pull request #1222 from zabbix/workflow_64

Added workflow to update Red Hat Container Catalog
This commit is contained in:
Alexey Pustovalov 2024-02-20 15:10:15 +09:00 committed by GitHub
commit 4b4140107c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,12 +52,11 @@ jobs:
github_ref: ${{ github.ref }}
run: |
result=false
sha_short=$(git rev-parse --short HEAD)
github_ref=${github_ref##*/}
echo "::group::Branch metadata"
echo "secret_prefix=RHEL_${github_ref//.}"
echo "zabbix_release=${github_ref//.}"
echo "::endgroup::"
echo "zabbix_release=${github_ref//.}" >> $GITHUB_OUTPUT
@ -135,14 +134,14 @@ jobs:
python -m pip install --upgrade pip
pip install markdown requests
- name: Update Red Hat project description (${{ matrix.component }}-${{ needs.branch_info.outputs.zabbix_release }})
- name: Update Red Hat project description (${{ matrix.component }}-${{ needs.init.outputs.zabbix_release }})
env:
DESCRIPTION_FILE: ${{ format('{0}/{1}/rhel/README', env.DOCKERFILES_DIRECTORY, matrix.component) }}
PROJECT_ID: ${{ secrets[format('RHEL_{0}_{1}_PROJECT', needs.branch_info.outputs.zabbix_release, needs.var_format.outputs.matrix_build)] }}
PROJECT_ID: ${{ secrets[format('RHEL_{0}_{1}_PROJECT', needs.init.outputs.zabbix_release, needs.var_format.outputs.matrix_build)] }}
PYXIS_API_TOKEN: ${{ secrets.REDHAT_API_TOKEN }}
API_URL: ${{ env.API_URL }}
COMPONENT: ${{ matrix.component }}
ZABBIX_RELEASE: ${{ needs.branch_info.outputs.zabbix_release }}
ZABBIX_RELEASE: ${{ needs.init.outputs.zabbix_release }}
run: |
python ./.github/scripts/rhel_description.py
echo "https://catalog.redhat.com/software/containers/zabbix/zabbix-${COMPONENT}-${ZABBIX_RELEASE}/${PROJECT_ID}"