Move sources directory and introduce additional build context

This commit is contained in:
Alexey Pustovalov
2024-12-24 20:53:06 +09:00
parent 9161d3b1dd
commit b0f7df6f69
36 changed files with 54 additions and 15 deletions

View File

@ -34,7 +34,7 @@ ENV ZBX_SOURCES_DIR=/tmp/zabbix-${ZBX_VERSION} ZBX_OUTPUT_DIR=/tmp/zabbix-${ZBX_
RUN --mount=type=cache,target=/root/.cache/go-build/ \
--mount=type=cache,target=/root/go/ \
--mount=type=bind,source=src/,target=/tmp/src \
--mount=from=sources,target=/tmp/src \
set -eux && \
cd /tmp/ && \
mkdir -p ${ZBX_OUTPUT_DIR}/agent/sbin/ && \