Skip to content

Commit

Permalink
Push option
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 7, 2025
1 parent b44fd6f commit 6b383e4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/scripts/build-docker-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,19 @@ ARCHITECTURE="$5"

cp "$APK_FILE" .

if [ "${PUBLISH_DOCKER_IMAGE}" = "true" ]; then
PUSH_OPTION=--push
fi

# shellcheck disable=SC2086
docker build \
--pull \
--no-cache \
--provenance false \
--build-arg "APK_FILE=$APK_FILE" \
--file .github/docker/alpine.dockerfile \
--tag "savonet/liquidsoap-ci-build:${TAG}_alpine_${ARCHITECTURE}" \
--push \
${PUSH_OPTION} \
.

if [ "${PUBLISH_DOCKER_IMAGE}" != "true" ]; then
Expand Down
7 changes: 6 additions & 1 deletion .github/scripts/build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ cp "$DEB_FILE" "$DEB_DEBUG_FILE" .

DOCKERFILE=.github/docker/debian.dockerfile

if [ "${PUBLISH_DOCKER_IMAGE}" = "true" ]; then
PUSH_OPTION=--push
fi

# shellcheck disable=SC2086
docker build \
--pull \
--no-cache \
Expand All @@ -21,7 +26,7 @@ docker build \
--build-arg "DEB_DEBUG_FILE=$DEB_DEBUG_FILE" \
--file "${DOCKERFILE}" \
--tag "savonet/liquidsoap-ci-build:${TAG}_${ARCHITECTURE}" \
--push \
${PUSH_OPTION} \
.

if [ "${PUBLISH_DOCKER_IMAGE}" != "true" ]; then
Expand Down

0 comments on commit 6b383e4

Please sign in to comment.