forked from platypush/platypush
[CI/CD] Ensure that public repo dirs are always readable by everyone.
This commit is contained in:
parent
cea3055369
commit
8c0c551aa5
1 changed files with 14 additions and 12 deletions
26
.drone.yml
26
.drone.yml
|
@ -415,15 +415,16 @@ steps:
|
||||||
[ "$RELEASED_VERSION" != "$VERSION" ] && export UPDATE_STABLE_PKG=1
|
[ "$RELEASED_VERSION" != "$VERSION" ] && export UPDATE_STABLE_PKG=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Don't proceed and update the main release if it hasn't changed
|
# Proceed and update the main release if the version number has changed
|
||||||
- |
|
- |
|
||||||
if [ -z "$UPDATE_STABLE_PKG" ]; then
|
if [ -n "$UPDATE_STABLE_PKG" ]; then
|
||||||
exit 0
|
echo "--- Updating main package"
|
||||||
|
mkdir -p "$APT_ROOT/pool/$DEB_VERSION/main"
|
||||||
|
cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- echo "--- Updating main package"
|
- chown -R a+r "$APT_ROOT"
|
||||||
- mkdir -p "$APT_ROOT/pool/$DEB_VERSION/main"
|
- chown a+x "$APT_ROOT"
|
||||||
- cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Update the Debian (oldstable) packages
|
### Update the Debian (oldstable) packages
|
||||||
|
@ -508,15 +509,16 @@ steps:
|
||||||
[ "$RELEASED_VERSION" != "$VERSION" ] && export UPDATE_STABLE_PKG=1
|
[ "$RELEASED_VERSION" != "$VERSION" ] && export UPDATE_STABLE_PKG=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Don't proceed and update the main release if it hasn't changed
|
# Proceed and update the main release if the version number has changed
|
||||||
- |
|
- |
|
||||||
if [ -z "$UPDATE_STABLE_PKG" ]; then
|
if [ -n "$UPDATE_STABLE_PKG" ]; then
|
||||||
exit 0
|
echo "--- Updating main package"
|
||||||
|
mkdir -p "$APT_ROOT/pool/$DEB_VERSION/main"
|
||||||
|
cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- echo "--- Updating main package"
|
- chown -R a+r "$APT_ROOT"
|
||||||
- mkdir -p "$APT_ROOT/pool/$DEB_VERSION/main"
|
- chown a+x "$APT_ROOT"
|
||||||
- cp "$GIT_DEB" "$APT_ROOT/pool/$DEB_VERSION/main/$${PKG_NAME}_$${VERSION}-1_all.deb"
|
|
||||||
|
|
||||||
###
|
###
|
||||||
### Updates the APT repository after new packages have been pushed
|
### Updates the APT repository after new packages have been pushed
|
||||||
|
|
Loading…
Reference in a new issue