Skip to content

Commit 4e8fac0

Browse files
committed
integration: Add aarch64 upload container
1 parent 7615036 commit 4e8fac0

File tree

4 files changed

+73
-2
lines changed

4 files changed

+73
-2
lines changed

integration/linux/upload/Dockerfile-linux.template

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM debian:bookworm
1+
ARG DOCKER_ARCH
2+
FROM ${DOCKER_ARCH}debian:bookworm
23

34
RUN export DEBIAN_FRONTEND=noninteractive \
45
&& apt-get update -y \
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#
2+
# NOTE: THIS DOCKERFILE IS GENERATED VIA "mkdockerfile.sh"
3+
#
4+
# PLEASE DO NOT EDIT IT DIRECTLY.
5+
#
6+
7+
ARG DOCKER_ARCH
8+
FROM ${DOCKER_ARCH}debian:bookworm
9+
10+
RUN export DEBIAN_FRONTEND=noninteractive \
11+
&& apt-get update -y \
12+
&& apt-get install -y --no-install-recommends \
13+
openssh-client \
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
RUN /bin/echo -e '#!/bin/bash\n\
17+
\n\
18+
set -e\n\
19+
\n\
20+
HOME=$(getent passwd "$(whoami)" | cut -d: -f6)\n\
21+
: ${PACKAGE_SERVER:="sftp://uploader@package-upload.edgedb.net/"}\n\
22+
\n\
23+
mkdir -p "${HOME}/.ssh" && chmod 700 "${HOME}/.ssh"\n\
24+
if [ -f "${PACKAGE_UPLOAD_SSH_KEY_FILE}" ]; then\n\
25+
cp "${PACKAGE_UPLOAD_SSH_KEY_FILE}" "${HOME}/.ssh/id_ed25519"\n\
26+
else\n\
27+
echo "${PACKAGE_UPLOAD_SSH_KEY}" > "${HOME}/.ssh/id_ed25519"\n\
28+
fi\n\
29+
chmod 400 "${HOME}/.ssh/id_ed25519"\n\
30+
\n\
31+
set -ex\n\
32+
\n\
33+
if [ "$1" == "bash" ]; then\n\
34+
exec /bin/bash\n\
35+
fi\n\
36+
\n\
37+
dest="artifacts"\n\
38+
if [ -n "${PKG_PLATFORM}" ]; then\n\
39+
dest+="/${PKG_PLATFORM}"\n\
40+
fi\n\
41+
if [ -n "${PKG_PLATFORM_LIBC}" ]; then\n\
42+
dest+="${PKG_PLATFORM_LIBC}"\n\
43+
fi\n\
44+
if [ -n "${PKG_PLATFORM_VERSION}" ]; then\n\
45+
dest+="-${PKG_PLATFORM_VERSION}"\n\
46+
fi\n\
47+
\n\
48+
cd "${dest}"\n\
49+
list=$(mktemp)\n\
50+
batch=$(mktemp)\n\
51+
find . -type f -printf '\''%P\\n'\'' > "${list}"\n\
52+
chmod g+rw "${list}"\n\
53+
\n\
54+
cat <<EOF >${batch}\n\
55+
put -r * incoming/\n\
56+
put -p ${list} incoming/triggers/\n\
57+
EOF\n\
58+
\n\
59+
sftp -o StrictHostKeyChecking=no -b "$batch" "$PACKAGE_SERVER"\n\
60+
\n\
61+
rm "$list" "$batch"\n\' >/entrypoint.sh
62+
63+
RUN chmod +x /entrypoint.sh
64+
ENTRYPOINT ["/entrypoint.sh"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: 'Publish EdgeDB Package'
2+
author: 'EdgeDB'
3+
runs:
4+
using: 'docker'
5+
image: 'Dockerfile'

integration/linux/upload/linux-x86_64/Dockerfile

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)