mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-06 01:47:17 +02:00
RHEL build test
This commit is contained in:
parent
7ced09ebe4
commit
301dc0f845
15
.github/workflows/images_build_rhel.yml
vendored
15
.github/workflows/images_build_rhel.yml
vendored
@ -190,8 +190,6 @@ jobs:
|
|||||||
- name: Build Zabbix Build Base
|
- name: Build Zabbix Build Base
|
||||||
id: build_image
|
id: build_image
|
||||||
uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12
|
uses: redhat-actions/buildah-build@b4dc19b4ba891854660ab1f88a097d45aa158f76 # v2.12
|
||||||
env:
|
|
||||||
GITHUB_WORKSPACE: ${{ github.workspace }}
|
|
||||||
with:
|
with:
|
||||||
context: ${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel
|
context: ${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel
|
||||||
layers: false
|
layers: false
|
||||||
@ -200,7 +198,7 @@ jobs:
|
|||||||
${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel/Dockerfile
|
${{ env.DOCKERFILES_DIRECTORY }}/${{ matrix.build }}/rhel/Dockerfile
|
||||||
extra-args: |
|
extra-args: |
|
||||||
--pull
|
--pull
|
||||||
--iidfile=$GITHUB_WORKSPACE/iidfile
|
--iidfile=${{ github.workspace }}/iidfile
|
||||||
|
|
||||||
- name: Image digest
|
- name: Image digest
|
||||||
env:
|
env:
|
||||||
@ -236,8 +234,9 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
|
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
|
||||||
IMAGE_DIR: ${{ env.IMAGE_DIR }}
|
IMAGE_DIR: ${{ env.IMAGE_DIR }}
|
||||||
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
TAG_ID=$(cat $HOME/iidfile)
|
TAG_ID=$(cat $GITHUB_WORKSPACE/iidfile)
|
||||||
|
|
||||||
echo "::group::Result"
|
echo "::group::Result"
|
||||||
echo "podman push \"${IMAGE_TAG}\" dir:\"${IMAGE_DIR}/${TAG_ID}\""
|
echo "podman push \"${IMAGE_TAG}\" dir:\"${IMAGE_DIR}/${TAG_ID}\""
|
||||||
@ -248,15 +247,21 @@ jobs:
|
|||||||
if: ${{ success() || failure() }}
|
if: ${{ success() || failure() }}
|
||||||
env:
|
env:
|
||||||
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
|
IMAGE_TAG: ${{ steps.build_image.outputs.image-with-tag }}
|
||||||
|
GITHUB_WORKSPACE: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
echo "::group::Result"
|
echo "::group::Result"
|
||||||
|
|
||||||
|
rm -rf "$GITHUB_WORKSPACE/iidfile"
|
||||||
|
|
||||||
echo "podman rmi -i -f \"${IMAGE_TAG}\""
|
echo "podman rmi -i -f \"${IMAGE_TAG}\""
|
||||||
podman rmi -i -f "${IMAGE_TAG}"
|
|
||||||
|
podman rmi -i -f "${IMAGE_TAG}" || true
|
||||||
buildah rm -a || true
|
buildah rm -a || true
|
||||||
podman system prune --external
|
podman system prune --external
|
||||||
podman system prune -a --volumes -f
|
podman system prune -a --volumes -f
|
||||||
podman system reset -f 2>/dev/null || true
|
podman system reset -f 2>/dev/null || true
|
||||||
#rm -rf /home/podman/.local/share/containers/
|
#rm -rf /home/podman/.local/share/containers/
|
||||||
|
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
build_base_database:
|
build_base_database:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user