1
0
Fork 0
mirror of https://github.com/sdr-enthusiasts/docker-adsb-ultrafeeder.git synced 2024-11-24 06:40:09 +00:00
This commit is contained in:
kx1t 2024-09-13 11:49:41 -04:00 committed by GitHub
parent 08af522e7d
commit 9567808ebd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ RUN \
# Get distance binary # Get distance binary
cp -f /buildimage/distance /usr/local/bin/distance && \ cp -f /buildimage/distance /usr/local/bin/distance && \
# Add Container Version # Add Container Version
{ [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; }&& \ { [[ "${VERSION_BRANCH:0:1}" == "#" ]] && VERSION_BRANCH="main" || true; } && \
echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL "https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH" | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \ echo "$(TZ=UTC date +%Y%m%d-%H%M%S)_$(curl -ssL "https://api.github.com/repos/$VERSION_REPO/commits/$VERSION_BRANCH" | awk '{if ($1=="\"sha\":") {print substr($2,2,7); exit}}')_$VERSION_BRANCH" > /.CONTAINER_VERSION && \
# Clean up: # Clean up:
apt-get remove -q -y "${TEMP_PACKAGES[@]}" && \ apt-get remove -q -y "${TEMP_PACKAGES[@]}" && \