mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-07 10:26:41 +02:00
Added workflow to update Red Hat Container Catalog
This commit is contained in:
parent
43178fdb00
commit
20374c2ffe
@ -52,12 +52,11 @@ jobs:
|
|||||||
github_ref: ${{ github.ref }}
|
github_ref: ${{ github.ref }}
|
||||||
run: |
|
run: |
|
||||||
result=false
|
result=false
|
||||||
sha_short=$(git rev-parse --short HEAD)
|
|
||||||
|
|
||||||
github_ref=${github_ref##*/}
|
github_ref=${github_ref##*/}
|
||||||
|
|
||||||
echo "::group::Branch metadata"
|
echo "::group::Branch metadata"
|
||||||
echo "secret_prefix=RHEL_${github_ref//.}"
|
echo "zabbix_release=${github_ref//.}"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
echo "zabbix_release=${github_ref//.}" >> $GITHUB_OUTPUT
|
echo "zabbix_release=${github_ref//.}" >> $GITHUB_OUTPUT
|
||||||
@ -135,14 +134,14 @@ jobs:
|
|||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install markdown requests
|
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:
|
env:
|
||||||
DESCRIPTION_FILE: ${{ format('{0}/{1}/rhel/README', env.DOCKERFILES_DIRECTORY, matrix.component) }}
|
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 }}
|
PYXIS_API_TOKEN: ${{ secrets.REDHAT_API_TOKEN }}
|
||||||
API_URL: ${{ env.API_URL }}
|
API_URL: ${{ env.API_URL }}
|
||||||
COMPONENT: ${{ matrix.component }}
|
COMPONENT: ${{ matrix.component }}
|
||||||
ZABBIX_RELEASE: ${{ needs.branch_info.outputs.zabbix_release }}
|
ZABBIX_RELEASE: ${{ needs.init.outputs.zabbix_release }}
|
||||||
run: |
|
run: |
|
||||||
python ./.github/scripts/rhel_description.py
|
python ./.github/scripts/rhel_description.py
|
||||||
echo "https://catalog.redhat.com/software/containers/zabbix/zabbix-${COMPONENT}-${ZABBIX_RELEASE}/${PROJECT_ID}"
|
echo "https://catalog.redhat.com/software/containers/zabbix/zabbix-${COMPONENT}-${ZABBIX_RELEASE}/${PROJECT_ID}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user