mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-02-22 21:00:52 +01:00
Prepare universal workflow
This commit is contained in:
parent
4b2e55c1eb
commit
dc95036bfa
12
.github/workflows/images_build.yml
vendored
12
.github/workflows/images_build.yml
vendored
@ -151,7 +151,7 @@ jobs:
|
||||
echo "list=$platform_list" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate tags (release)
|
||||
id: meta
|
||||
id: meta_release
|
||||
if: ${{ needs.init_build.outputs.current_branch != 'trunk' }}
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
@ -166,7 +166,7 @@ jobs:
|
||||
latest=${{ (matrix.os == 'alpine') && ( needs.init_build.outputs.is_default_branch == 'true' ) }}
|
||||
|
||||
- name: Generate tags (trunk)
|
||||
id: meta
|
||||
id: meta_trunk
|
||||
if: ${{ needs.init_build.outputs.current_branch == 'trunk' }}
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
@ -176,3 +176,11 @@ jobs:
|
||||
type=ref,event=branch,suffix=-${{ matrix.os }}
|
||||
flavor: |
|
||||
latest=false
|
||||
|
||||
- name: Prepare Platform list
|
||||
id: platform
|
||||
run: |
|
||||
echo "${{ steps.meta_release.outputs.tags }}"
|
||||
echo "${{ fromJSON(steps.meta_release.outputs.json).labels['org.opencontainers.image.revision'] }}"
|
||||
echo "${{ steps.meta_trunk.outputs.tags }}"
|
||||
echo "${{ fromJSON(steps.meta_trunk.outputs.json).labels['org.opencontainers.image.revision'] }}"
|
||||
|
Loading…
Reference in New Issue
Block a user