fix(build): ensure dovecot downloaded and installed

!10
This commit is contained in:
2023-05-21 13:40:46 +09:30
parent 9a0df52cd9
commit 88689c87ac

View File

@ -131,13 +131,13 @@ RUN apt update && apt -y --no-install-recommends install \
# as this architecture doesn't exist in the apt repo, use compiled versions
adduser --system --group dovecot --no-create-home; \
cd tmp; \
curl --user "JOB-TOKEN: ${CI_JOB_TOKEN}" \
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
"https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/packages/generic/dovecot/${DOVECOT_BUILD_VERSION}/dovecot-core_${DOVECOT_BUILD_VERSION}-1_$(echo `dpkg --print-architecture`).deb" -o "dovecot-core_${DOVECOT_BUILD_VERSION}-1_$(echo `dpkg --print-architecture`).deb"; \
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" \
"https://gitlab.com/api/v4/projects/$CI_PROJECT_ID/packages/generic/dovecot/${DOVECOT_BUILD_VERSION}/dovecot-pigeonhole_${DOVECOT_BUILD_VERSION}-1_$(echo `dpkg --print-architecture`).deb" -o "dovecot-pigeonhole_${DOVECOT_BUILD_VERSION}-1_$(echo `dpkg --print-architecture`).deb"; \
dpkg -i dovecot-core_${DOVECOT_BUILD_VERSION}-1_$(echo `dpkg --print-architecture`).deb; \
cp /usr/local/share/doc/dovecot/example-config/dovecot.conf /etc/dovecot/; \
dpkg -i dovecot-core_$DOVECOT_BUILD_VERSION-1_$(echo `dpkg --print-architecture`).deb; \
dpkg -i dovecot-pigeonhole_$DOVECOT_BUILD_VERSION-1_$(echo `dpkg --print-architecture`).deb; \
fi \
&& rm -f /etc/cron.d/e2scrub_all \
&& rm -f /etc/cron.daily/apt-compat \