mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-05 01:17:27 +02:00
Updated building images workflow
This commit is contained in:
parent
a8397414f4
commit
386720bff3
14
.github/workflows/images_build_rhel.yml
vendored
14
.github/workflows/images_build_rhel.yml
vendored
@ -29,7 +29,7 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AUTO_PUSH_IMAGES: ${{ contains(fromJSON('["workflow_dispatch", "push"]'), github.event_name) && 'false' || vars.AUTO_PUSH_IMAGES }}
|
AUTO_PUSH_IMAGES: ${{ ! contains(fromJSON('["workflow_dispatch", "push"]'), github.event_name) && vars.AUTO_PUSH_IMAGES }}
|
||||||
|
|
||||||
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
|
LATEST_BRANCH: ${{ github.event.repository.default_branch }}
|
||||||
TRUNK_GIT_BRANCH: "refs/heads/trunk"
|
TRUNK_GIT_BRANCH: "refs/heads/trunk"
|
||||||
@ -588,6 +588,9 @@ jobs:
|
|||||||
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
org.opencontainers.image.created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel/Dockerfile
|
${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel/Dockerfile
|
||||||
|
extra-args: |
|
||||||
|
--pull
|
||||||
|
--iidfile=${{ github.workspace }}/iidfile
|
||||||
build-args: BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }}
|
build-args: BUILD_BASE_IMAGE=${{ steps.base_build.outputs.base_build_image }}
|
||||||
|
|
||||||
- name: Log in to ${{ env.REGISTRY }}
|
- name: Log in to ${{ env.REGISTRY }}
|
||||||
@ -657,6 +660,15 @@ jobs:
|
|||||||
podman rmi -i -f "$PREFLIGHT_IMAGE"
|
podman rmi -i -f "$PREFLIGHT_IMAGE"
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
|
- name: Image digest
|
||||||
|
env:
|
||||||
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||||
|
run: |
|
||||||
|
TAG_ID=$(cat $GITHUB_WORKSPACE/iidfile)
|
||||||
|
echo "::group::Image digest"
|
||||||
|
echo "$TAG_ID"
|
||||||
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Post build image
|
- name: Post build image
|
||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user