-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix node-sqlite3 dependency in ARM builds (#131)
- Loading branch information
1 parent
8f98fff
commit 4d09668
Showing
7 changed files
with
81 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
# Script executed by GitHub actions. | ||
|
||
set -euo pipefail | ||
|
||
VERSION="$GITHUB_REF" | ||
TAG="$VERSION" | ||
MAJOR_TAG="$(sed -nre 's/^([0-9]+).*/\1/p' <<< "$VERSION")" | ||
LATEST_TAG="latest" | ||
|
||
if grep -q "^alpine/" <<< "${DOCKERFILE}"; then | ||
TAG="${VERSION}-alpine" | ||
MAJOR_TAG="${MAJOR_TAG}-alpine" | ||
LATEST_TAG="alpine" | ||
fi | ||
|
||
# If not a pre-release push LATEST_TAG & MAJOR_TAG | ||
if grep -qE "^[0-9]*\.[0-9]*\.[0-9]*$" <<< "${VERSION}"; then | ||
EXTRA_ARG+=("--tag" "${DOCKER_REPOSITORY}:${LATEST_TAG}") | ||
EXTRA_ARG+=("--tag" "${DOCKER_REPOSITORY}:${MAJOR_TAG}") | ||
fi | ||
|
||
docker buildx build \ | ||
--push \ | ||
--platform "${PLATFORMS}" \ | ||
--tag "${DOCKER_REPOSITORY}:${TAG}" \ | ||
"${EXTRA_ARG[@]}" \ | ||
--file "${DOCKERFILE}" \ | ||
. |
File renamed without changes.