mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-01-22 13:28:41 +01:00
Update CI.yml
This commit is contained in:
parent
9b302b48b5
commit
c4bd6cefe7
8
.github/workflows/CI.yml
vendored
8
.github/workflows/CI.yml
vendored
@ -23,7 +23,7 @@ defaults:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
env:
|
env:
|
||||||
LATEST_BRANCH: "${{ github.event.repository.master_branch }}"
|
LATEST_BRANCH: "${{ github.event.repository.default_branch }}"
|
||||||
DOCKER_REPOSITORY: "zabbix"
|
DOCKER_REPOSITORY: "zabbix"
|
||||||
PUSH_IMAGES: "false"
|
PUSH_IMAGES: "false"
|
||||||
strategy:
|
strategy:
|
||||||
@ -174,6 +174,8 @@ jobs:
|
|||||||
BUILDX_ARGS="${{ steps.prepare_push.outputs.buildx_args }}"
|
BUILDX_ARGS="${{ steps.prepare_push.outputs.buildx_args }}"
|
||||||
elif [ ! -z "${{ steps.prepare_release.outputs.buildx_args }}" ]; then
|
elif [ ! -z "${{ steps.prepare_release.outputs.buildx_args }}" ]; then
|
||||||
BUILDX_ARGS="${{ steps.prepare_release.outputs.buildx_args }}"
|
BUILDX_ARGS="${{ steps.prepare_release.outputs.buildx_args }}"
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker buildx build --cache-to "type=local,dest=/tmp/.buildx-cache" \
|
docker buildx build --cache-to "type=local,dest=/tmp/.buildx-cache" \
|
||||||
@ -198,10 +200,8 @@ jobs:
|
|||||||
BUILDX_ARGS="${{ steps.prepare_release.outputs.buildx_args }}"
|
BUILDX_ARGS="${{ steps.prepare_release.outputs.buildx_args }}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "::debug::push built images - ${{ env.PUSH_IMAGES }}"
|
|
||||||
|
|
||||||
docker buildx build --cache-from "type=local,src=/tmp/.buildx-cache" \
|
docker buildx build --cache-from "type=local,src=/tmp/.buildx-cache" \
|
||||||
--output "type=image,push=false" \
|
--output "type=image,push=${{ env.PUSH_IMAGES }}" \
|
||||||
${BUILDX_ARGS}
|
${BUILDX_ARGS}
|
||||||
|
|
||||||
- name: Inspect images
|
- name: Inspect images
|
||||||
|
Loading…
Reference in New Issue
Block a user