mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-12-19 03:37:46 +00:00
[Build-System] Use unique .orig.tar.xz filenames across different Debian distributions. Update Debian distributions since stable is Trixie now. Use codename instead of suite when generating the distribution field in .changes files. (#2953)
This commit is contained in:
@@ -59,8 +59,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
||||||
@@ -83,21 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,8 +59,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
||||||
@@ -83,21 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,8 +59,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,8 +59,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -59,7 +59,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -83,20 +82,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
|
|
||||||
RUN dpkg-source \
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
--diff-ignore=.* \
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
WORKDIR /
|
||||||
--build \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
. \
|
|
||||||
&& debuild -b -us -uc \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
&& mkdir OUT \
|
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
|
|
||||||
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,8 +49,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
sha512sum /run/secrets/REPO_PASSWORD && \
|
sha512sum /run/secrets/REPO_PASSWORD && \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,8 +49,7 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc ${CODENAME}
|
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
sha512sum /run/secrets/REPO_PASSWORD && \
|
sha512sum /run/secrets/REPO_PASSWORD && \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a amd64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a armhf ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a armhf -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ COPY . ${DATA_DIR}
|
|||||||
WORKDIR ${DATA_DIR}
|
WORKDIR ${DATA_DIR}
|
||||||
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
RUN echo "export VERSION=$(cat ./build/next-release.txt | tr -d '\n')" | tee -a ~/.env
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
|
||||||
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
RUN . ~/.env && ./debian/util.sh prep-create-dsc -a arm64 ${CODENAME}
|
||||||
|
|
||||||
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
||||||
@@ -65,21 +64,22 @@ RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
|
|||||||
rm -f /etc/apt/auth.conf
|
rm -f /etc/apt/auth.conf
|
||||||
|
|
||||||
ENV DEB_BUILD_OPTIONS="parallel=1"
|
ENV DEB_BUILD_OPTIONS="parallel=1"
|
||||||
RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
|
RUN . ~/.env && ./debian/util.sh create-orig -n -v${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
||||||
--force-distribution -D "${CODENAME}" "Nightly build, ${GIT_SHA}"
|
|
||||||
|
|
||||||
RUN . ~/.env && ./debian/util.sh create-orig -n -V${VERSION}-${BUILD_NUMBER}-${GIT_SHA} -x
|
RUN . ~/.env && ORIGFILE=$(find ../ -name "freeswitch_*.orig.tar.xz" -type f) \
|
||||||
|
&& ./debian/util.sh create-dsc -a arm64 -z9 ${CODENAME} "$ORIGFILE"
|
||||||
|
|
||||||
RUN dpkg-source \
|
WORKDIR /
|
||||||
--diff-ignore=.* \
|
RUN dpkg-source -x freeswitch_*.dsc
|
||||||
--compression=xz \
|
|
||||||
--compression-level=9 \
|
RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
|
||||||
--build \
|
|
||||||
. \
|
RUN cd freeswitch-*/ && debuild -b -us -uc
|
||||||
&& debuild -b -us -uc \
|
|
||||||
&& mkdir OUT \
|
RUN mkdir OUT && mv -v *.{deb,dsc,changes,tar.*} OUT/.
|
||||||
&& mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
|
|
||||||
|
RUN ls -lah /OUT
|
||||||
|
|
||||||
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
# Artifacts image (mandatory part, the resulting image must have a single filesystem layer)
|
||||||
FROM scratch
|
FROM scratch
|
||||||
COPY --from=builder /data/OUT/ /
|
COPY --from=builder /OUT/ /
|
||||||
|
|||||||
22
debian/util.sh
vendored
22
debian/util.sh
vendored
@@ -46,10 +46,10 @@ find_distro () {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
experimental) echo "sid";;
|
experimental) echo "sid";;
|
||||||
unstable) echo "sid";;
|
unstable) echo "sid";;
|
||||||
testing) echo "trixie";;
|
stable) echo "trixie";;
|
||||||
stable) echo "bookworm";;
|
oldstable) echo "bookworm";;
|
||||||
oldstable) echo "bullseye";;
|
oldoldstable) echo "bullseye";;
|
||||||
oldoldstable) echo "buster";;
|
oldoldoldstable) echo "buster";;
|
||||||
*) echo "$1";;
|
*) echo "$1";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -57,10 +57,10 @@ find_distro () {
|
|||||||
find_suite () {
|
find_suite () {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
sid) echo "unstable";;
|
sid) echo "unstable";;
|
||||||
trixie) echo "testing";;
|
trixie) echo "stable";;
|
||||||
bookworm) echo "stable";;
|
bookworm) echo "oldstable";;
|
||||||
bullseye) echo "oldstable";;
|
bullseye) echo "oldoldstable";;
|
||||||
buster) echo "oldoldstable";;
|
buster) echo "oldoldoldstable";;
|
||||||
*) echo "$1";;
|
*) echo "$1";;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -210,8 +210,8 @@ create_orig () {
|
|||||||
orig="../freeswitch_$(debian/version-omit_revision.pl).orig.tar.xz"
|
orig="../freeswitch_$(debian/version-omit_revision.pl).orig.tar.xz"
|
||||||
git_archive_prefix="freeswitch/"
|
git_archive_prefix="freeswitch/"
|
||||||
else
|
else
|
||||||
orig="../freeswitch_$(mk_dver "$uver")~$(lsb_release -sc).orig.tar.xz"
|
orig="../freeswitch_${uver}~$(lsb_release -sc)~$(dpkg-architecture -qDEB_BUILD_ARCH).orig.tar.xz"
|
||||||
git_archive_prefix="freeswitch-$uver/"
|
git_archive_prefix="freeswitch/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv .gitattributes .gitattributes.orig
|
mv .gitattributes .gitattributes.orig
|
||||||
@@ -360,7 +360,7 @@ create_dsc () {
|
|||||||
|
|
||||||
[ "$zl" -ge "1" ] || zl=1
|
[ "$zl" -ge "1" ] || zl=1
|
||||||
|
|
||||||
dch -b -m -v "$dver" --force-distribution -D "$suite" "Nightly build."
|
dch -b -m -v "$dver" --force-distribution -D "$distro" "Nightly build."
|
||||||
|
|
||||||
git add debian/rules debian/changelog && git commit -m "nightly v$orig_ver"
|
git add debian/rules debian/changelog && git commit -m "nightly v$orig_ver"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user