WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
printf "machine ${REPO_DOMAIN} " > /etc/apt/auth.conf && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+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"
+
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
sha512sum /run/secrets/REPO_PASSWORD && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 ${CODENAME}
+RUN . ~/.env && ./debian/util.sh prep-create-dsc -a amd64 ${CODENAME}
RUN --mount=type=secret,id=REPO_PASSWORD,required=true \
sha512sum /run/secrets/REPO_PASSWORD && \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
WORKDIR ${DATA_DIR}
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 --mount=type=secret,id=REPO_PASSWORD,required=true \
rm -f /etc/apt/auth.conf
ENV DEB_BUILD_OPTIONS="parallel=1"
-RUN . ~/.env && dch -b -M -v "${VERSION}-${BUILD_NUMBER}-${GIT_SHA}~${CODENAME}" \
- --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 && ./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 \
- --diff-ignore=.* \
- --compression=xz \
- --compression-level=9 \
- --build \
- . \
- && debuild -b -us -uc \
- && mkdir OUT \
- && mv -v ../*.{deb,dsc,changes,tar.*} OUT/.
+WORKDIR /
+RUN dpkg-source -x freeswitch_*.dsc
+
+RUN cd freeswitch-*/ && debuild -S -sa -d -us -uc
+
+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)
FROM scratch
-COPY --from=builder /data/OUT/ /
+COPY --from=builder /OUT/ /
case "$1" in
experimental) echo "sid";;
unstable) echo "sid";;
- testing) echo "trixie";;
- stable) echo "bookworm";;
- oldstable) echo "bullseye";;
- oldoldstable) echo "buster";;
+ stable) echo "trixie";;
+ oldstable) echo "bookworm";;
+ oldoldstable) echo "bullseye";;
+ oldoldoldstable) echo "buster";;
*) echo "$1";;
esac
}
find_suite () {
case "$1" in
sid) echo "unstable";;
- trixie) echo "testing";;
- bookworm) echo "stable";;
- bullseye) echo "oldstable";;
- buster) echo "oldoldstable";;
+ trixie) echo "stable";;
+ bookworm) echo "oldstable";;
+ bullseye) echo "oldoldstable";;
+ buster) echo "oldoldoldstable";;
*) echo "$1";;
esac
}
orig="../freeswitch_$(debian/version-omit_revision.pl).orig.tar.xz"
git_archive_prefix="freeswitch/"
else
- orig="../freeswitch_$(mk_dver "$uver")~$(lsb_release -sc).orig.tar.xz"
- git_archive_prefix="freeswitch-$uver/"
+ orig="../freeswitch_${uver}~$(lsb_release -sc)~$(dpkg-architecture -qDEB_BUILD_ARCH).orig.tar.xz"
+ git_archive_prefix="freeswitch/"
fi
mv .gitattributes .gitattributes.orig
[ "$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"