Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
127 commits
Select commit Hold shift + click to select a range
779f631
SERVER-216 test shared workflow
cinterloper Aug 18, 2025
5211f3e
update branches
cinterloper Aug 19, 2025
05630b4
change uses refrence
cinterloper Aug 20, 2025
0e3f201
debug
cinterloper Aug 21, 2025
f334c30
debug
cinterloper Aug 21, 2025
8d0c01b
debug
cinterloper Aug 21, 2025
a47f655
debug
cinterloper Aug 21, 2025
5f800b3
debug
cinterloper Aug 21, 2025
a58bd57
debug
cinterloper Aug 21, 2025
dd38927
debug
cinterloper Aug 21, 2025
93f83f0
debug
cinterloper Aug 21, 2025
54a421c
debug
cinterloper Aug 21, 2025
f0120ff
update script path
cinterloper Aug 21, 2025
7f836c1
test workflow with built in clone
cinterloper Aug 22, 2025
7d62ba0
fix path
cinterloper Aug 22, 2025
1639e0e
remove tty argument
cinterloper Aug 22, 2025
1cff6fb
update repo
cinterloper Aug 22, 2025
036dd15
debug
cinterloper Aug 26, 2025
f2317d8
merge
cinterloper Aug 26, 2025
1c794ea
remove tty
cinterloper Aug 26, 2025
18b2a31
debug
cinterloper Aug 26, 2025
ab9a9b1
debug
cinterloper Aug 26, 2025
7f01cbb
debug
cinterloper Aug 26, 2025
400af90
debug
cinterloper Aug 26, 2025
bcb3b14
add sign workflow
cinterloper Aug 26, 2025
4a3b4ae
upload job
cinterloper Aug 26, 2025
561dd22
run sequentially
cinterloper Aug 26, 2025
7517f7d
support ubuntu 20.04 22.04 24.04 and debian 11 12
cinterloper Aug 26, 2025
6e3ca1c
update workflow version, change directory
cinterloper Aug 27, 2025
5cc78b2
remove unused key
cinterloper Aug 27, 2025
7a73e01
update artifactory oidc config
cinterloper Aug 27, 2025
f201d8f
update artifact-name for deploy
cinterloper Aug 27, 2025
3af4836
change package names to match expected distro names
cinterloper Aug 27, 2025
632f12a
change Dockerfile names
cinterloper Aug 27, 2025
108fe11
change artifactory project
cinterloper Aug 27, 2025
1d9e625
build packages that match distro
cinterloper Aug 27, 2025
d1b9e8c
build deb for debian/ubuntu, rpm for redhat, tar for other
cinterloper Aug 27, 2025
71698d5
reenable redhat
cinterloper Aug 27, 2025
7979970
update project
cinterloper Aug 27, 2025
f3bcfdd
change package names to reflect os name
cinterloper Aug 27, 2025
985b652
update naming convention
cinterloper Aug 27, 2025
23bef2d
update naming convention to match naming guidelines
cinterloper Aug 27, 2025
947f3ec
dont trample variable
cinterloper Aug 27, 2025
19eaf72
add explicit distro name to docker run
cinterloper Aug 27, 2025
4bb9fe5
test workflow fix
cinterloper Sep 1, 2025
00c323c
remove shell invocation and quote
cinterloper Sep 1, 2025
2968751
update command, should clone by default
cinterloper Sep 1, 2025
08003d3
update command, should clone by default
cinterloper Sep 1, 2025
ec28911
revert
cinterloper Sep 1, 2025
b1b5a7c
retest github action
cinterloper Sep 2, 2025
3689b22
debug: starting to investigate jfrog
arrowplum Sep 2, 2025
06899e8
test: update build-artifacts workflow to use test project and adjust …
arrowplum Sep 3, 2025
92a0578
use repo clone
cinterloper Sep 3, 2025
5485510
update build-script
cinterloper Sep 4, 2025
e9fdc99
Merge remote-tracking branch 'origin/SERVER-216-debug-jfrog' into SER…
cinterloper Sep 4, 2025
8d5585d
enable debugging
cinterloper Sep 4, 2025
950fe77
match ubi for redhat
cinterloper Sep 4, 2025
71a3719
copy new workflow from asadmin repo
cinterloper Sep 6, 2025
770b8d9
update workflow
cinterloper Sep 6, 2025
b4adeb9
update oidc settings
cinterloper Sep 8, 2025
a6eaac6
try database project
cinterloper Sep 8, 2025
69d9811
update other block
cinterloper Sep 8, 2025
40bb6d4
change oidc creds
cinterloper Sep 9, 2025
cf64799
install go to /usr/local/bin
cinterloper Sep 9, 2025
095d63d
fix typo
cinterloper Sep 9, 2025
8f2b68f
add GOROOT env var
cinterloper Sep 9, 2025
bdba604
matrix arm/x86
cinterloper Sep 12, 2025
e890d8c
multi arch golang
cinterloper Sep 12, 2025
c60de95
cut hash from version
cinterloper Sep 12, 2025
0729ac7
matrix amazon 2023 debian 13 redhat 8
cinterloper Sep 18, 2025
58edd4b
mac artifact upload to jfrog
cinterloper Sep 18, 2025
9d480cc
matrix redhat 8 debian 13 amazon 2023
cinterloper Sep 19, 2025
6bf8d83
simplify artifact name
cinterloper Sep 19, 2025
46e13f6
match artifact names
cinterloper Sep 19, 2025
5a92f0f
change job to step
cinterloper Sep 20, 2025
52a3e60
revert
cinterloper Sep 20, 2025
7acd3de
update branch push triggers and redhat 8 dependency
cinterloper Sep 29, 2025
63baec9
mac signing makefile
cinterloper Sep 30, 2025
b74cb4d
remove submodule with wrong path
cinterloper Oct 1, 2025
4a2d5b0
port aerospike-tools mac build infra to asconfig local repo
cinterloper Oct 1, 2025
1876b5a
pin to latest commit of shared-repos
cinterloper Oct 13, 2025
db5b869
Merge remote-tracking branch 'origin/SERVER-216' into SERVER-216
cinterloper Oct 13, 2025
ef06b11
replace ubi9 with el9
cinterloper Oct 13, 2025
ce3771f
revert ubi9 image name
cinterloper Oct 13, 2025
b460085
replace microdnf with dnf
cinterloper Oct 13, 2025
d6e2769
dont use minimal image
cinterloper Oct 13, 2025
8e21827
fix amazon install deps function name
cinterloper Oct 13, 2025
3ad1be2
add goroot
cinterloper Oct 13, 2025
132d598
add missing GOROOT to 3 dockerfiles
cinterloper Oct 13, 2025
8607ce6
remove USER from debian13
cinterloper Oct 13, 2025
679433b
cleanup dockerfiles
cinterloper Oct 13, 2025
a3266fa
disable redhat-el8 due to ruby/fpm error
cinterloper Oct 13, 2025
c94ce4e
force version to be computed from command, not from the enviornment
cinterloper Oct 14, 2025
461792c
use version directly
cinterloper Oct 14, 2025
7a4b4db
replace version in deb and rpm
cinterloper Oct 14, 2025
9b77cd9
use source-ref
cinterloper Oct 14, 2025
57675e0
echo refname, reformat script
cinterloper Oct 14, 2025
b5832ba
use VERSION from enviornment
cinterloper Oct 14, 2025
0ed25aa
add debugging, why is the commit appear orphaned
cinterloper Oct 14, 2025
cb6df7e
debug git version fetch
cinterloper Oct 14, 2025
27abc8a
fix git command
cinterloper Oct 14, 2025
d0dc551
debug
cinterloper Oct 14, 2025
6808138
try pulling tags
cinterloper Oct 14, 2025
43be632
cleanup and pull git tags
cinterloper Oct 14, 2025
9c0c509
pull origin in script
cinterloper Oct 14, 2025
d64d192
debug
cinterloper Oct 14, 2025
aefc524
try using git describe --long instead of git describe --tags --always
cinterloper Oct 15, 2025
76852cc
add debugging
cinterloper Oct 15, 2025
efbdfa6
cleanup, git fetch --unshallow --tags fixed the issue with git descri…
cinterloper Oct 15, 2025
4e801f3
Merge remote-tracking branch 'origin/main' into SERVER-216
cinterloper Oct 15, 2025
73e2ee1
Add support for rhel10, remove support for debian11, fix fpm error fo…
pvinh-spike Oct 15, 2025
4acd1ce
standardize build script to not unshallow submodules
cinterloper Oct 15, 2025
3fdfe75
restore VERSION in makefile
cinterloper Oct 15, 2025
5429796
add missing line to build script
cinterloper Oct 15, 2025
87a71f6
pin versions of fpm and redhat images
cinterloper Oct 17, 2025
48eb44c
prefix package name with aerospike-
cinterloper Oct 18, 2025
2cead7f
Merge branch 'SERVER-216' into SERVER-434
cinterloper Oct 20, 2025
80ddd99
update to shared-workflows v2.0.0
cinterloper Oct 20, 2025
2b7d24c
Revert "update to shared-workflows v2.0.0"
cinterloper Oct 20, 2025
e01af6f
change ubi -> el
cinterloper Oct 22, 2025
17605ac
fix rpm naming conventions
cinterloper Oct 22, 2025
bcc53ea
correct package name
cinterloper Oct 22, 2025
92683c9
add tests
cinterloper Oct 23, 2025
c3b66f2
Delete .github/docker/test/test_package.sh
cinterloper Oct 23, 2025
0b932b4
remove source removed file
cinterloper Oct 23, 2025
87e3dc4
feat: adds trunk code quality linter and tool.
arrowplum Oct 24, 2025
f2fb7cc
chore: disable commitlint in trunk.yaml
arrowplum Oct 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/docker/Dockerfile-amzn2023
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM amazonlinux:2023
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_amzn2023
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-debian11
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM debian:bullseye
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_debian11
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-debian12
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM debian:bookworm
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_debian12
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-debian13
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM debian:trixie
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_debian13
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
10 changes: 10 additions & 0 deletions .github/docker/Dockerfile-el10
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM redhat/ubi10
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_el10
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
10 changes: 10 additions & 0 deletions .github/docker/Dockerfile-el8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM redhat/ubi8:8.10
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_el8
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
10 changes: 10 additions & 0 deletions .github/docker/Dockerfile-el9
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM redhat/ubi9:9.6
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_el9
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-ubuntu20.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:20.04
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_ubuntu20.04
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-ubuntu22.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:22.04
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_ubuntu22.04
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
12 changes: 12 additions & 0 deletions .github/docker/Dockerfile-ubuntu24.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:24.04
SHELL ["/bin/bash", "-euox", "pipefail", "-c"]
ENV GOROOT=/opt/golang/go/
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -y update
ADD .github/docker/entrypoint.sh /tmp/entrypoint.sh
ADD .github/docker/install_deps.sh /tmp/install_deps.sh
RUN source /tmp/install_deps.sh && install_deps_ubuntu24.04
ADD . /opt/asconfig
WORKDIR /opt/asconfig
ENTRYPOINT ["/opt/asconfig/.github/docker/entrypoint.sh"]
CMD ["-b"]
36 changes: 36 additions & 0 deletions .github/docker/build_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

function build_packages(){
if [ "$ENV_DISTRO" = "" ]; then
echo "ENV_DISTRO is not set"
return
fi
export PATH=$PATH:/opt/golang/go/bin
GIT_DIR=$(git rev-parse --show-toplevel)

# build
cd "$GIT_DIR"
make clean
make

echo "build_package.sh version: $(git describe --tags --always)"
export VERSION=$(git describe --tags --always)
# package
cd $PKG_DIR
make clean
echo "building package for $BUILD_DISTRO"

if [[ $ENV_DISTRO == *"ubuntu"* ]]; then
make deb
elif [[ $ENV_DISTRO == *"debian"* ]]; then
make deb
elif [[ $ENV_DISTRO == *"el"* ]]; then
make rpm
elif [[ $ENV_DISTRO == *"amzn"* ]]; then
make rpm
else
make tar
fi

mkdir -p /tmp/output/$ENV_DISTRO
cp -a $PKG_DIR/target/* /tmp/output/$ENV_DISTRO
}
175 changes: 175 additions & 0 deletions .github/docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
#!/usr/bin/env bash
set -xeuo pipefail
env


SCRIPT_DIR="$(dirname "$(realpath "$0")")"



source $SCRIPT_DIR/build_package.sh

if [ -d ".git" ]; then
GIT_DIR=$(pwd)
PKG_DIR=$GIT_DIR/pkg
fi



function build_container() {
docker build --progress=plain -t asbackup-pkg-builder-"$1"-"$(git rev-parse HEAD | cut -c -8)" -f .github/docker/Dockerfile-"$1" .
}


function execute_build_image() {
export BUILD_DISTRO="$1"
docker run -e BUILD_DISTRO -v $(realpath ../dist):/tmp/output asbackup-pkg-builder-"$BUILD_DISTRO"-"$(git rev-parse HEAD | cut -c -8)"
ls -laht ../dist
}

INSTALL=false
BUILD_INTERNAL=false
BUILD_CONTAINERS=false
EXECUTE_BUILD=false
BUILD_DISTRO=${BUILD_DISTRO:-"all"}

while getopts "ibced:" opt; do
case ${opt} in
i )
INSTALL=true
;;
b )
BUILD_INTERNAL=true
;;
c )
BUILD_CONTAINERS=true
;;
e )
EXECUTE_BUILD=true
;;
d )
BUILD_DISTRO="$OPTARG"
;;
esac
done

shift $((OPTIND -1))

if [ "$INSTALL" = false ] && [ "$BUILD_INTERNAL" = false ] && [ "$BUILD_CONTAINERS" = false ] && [ "$EXECUTE_BUILD" = false ];
then
echo """Error: Options:
-i ( install )
-b ( build internal )
-c ( build containers )
-e ( execute docker package build )
-d [ redhat | ubuntu | debian ]""" 1>&2
exit 1
fi

if grep -q 20.04 /etc/os-release; then
ENV_DISTRO="ubuntu20.04"
elif grep -q 22.04 /etc/os-release; then
ENV_DISTRO="ubuntu22.04"
elif grep -q 24.04 /etc/os-release; then
ENV_DISTRO="ubuntu24.04"
elif grep -q "platform:el8" /etc/os-release; then
ENV_DISTRO="el8"
elif grep -q "platform:el9" /etc/os-release; then
ENV_DISTRO="el9"
elif grep -q "platform:el10" /etc/os-release; then
ENV_DISTRO="el10"
elif grep -q "amazon_linux:2023" /etc/os-release; then
ENV_DISTRO="amzn2023"
elif grep -q "bullseye" /etc/os-release; then
ENV_DISTRO="debian11"
elif grep -q "bookworm" /etc/os-release; then
ENV_DISTRO="debian12"
elif grep -q "trixie" /etc/os-release; then
ENV_DISTRO="debian13"
else
cat /etc/os-release
echo "os not supported"
fi


if [ "$INSTALL" = "true" ]; then
if [ "$ENV_DISTRO" = "ubuntu20.04" ]; then
echo "installing dependencies for Ubuntu 20.04"
install_deps_ubuntu20.04
elif [ "$ENV_DISTRO" = "ubuntu22.04" ]; then
echo "installing dependencies for Ubuntu 22.04"
install_deps_ubuntu22.04
elif [ "$ENV_DISTRO" = "ubuntu24.04" ]; then
echo "installing dependencies for Ubuntu 24.04"
install_deps_ubuntu24.04
elif [ "$ENV_DISTRO" = "el8" ]; then
echo "installing dependencies for RedHat el8"
install_deps_el8
elif [ "$ENV_DISTRO" = "el9" ]; then
echo "installing dependencies for RedHat el9"
install_deps_el9
elif [ "$ENV_DISTRO" = "el10" ]; then
echo "installing dependencies for RedHat el10"
install_deps_el10
elif [ "$ENV_DISTRO" = "amzn2023" ]; then
echo "installing dependencies for Amazon 2023"
install_deps_redhat-amzn2023
elif [ "$ENV_DISTRO" = "debian11" ]; then
echo "installing dependencies for Debian 11"
install_deps_debian11
elif [ "$ENV_DISTRO" = "debian12" ]; then
echo "installing dependencies for Debian 12"
install_deps_debian12
elif [ "$ENV_DISTRO" = "debian13" ]; then
echo "installing dependencies for Debian 13"
install_deps_debian13
else
cat /etc/os-release
echo "distro not supported"
fi
elif [ "$BUILD_INTERNAL" = "true" ]; then
build_packages
elif [ "$BUILD_CONTAINERS" = "true" ]; then
if [ "$BUILD_DISTRO" = "all" ]; then
build_container debian11
build_container debian12
build_container debian13
build_container ubuntu20.04
build_container ubuntu22.04
build_container ubuntu24.04
build_container el8
build_container el9
build_container el10
build_container amzn2023
else
build_container $BUILD_DISTRO
fi
fi

if [ "$EXECUTE_BUILD" = "true" ]; then
if [ "$BUILD_DISTRO" = "all" ]; then
echo "building package for Debian 11"
execute_build_image debian11
echo "building package for Debian 12"
execute_build_image debian12
echo "building package for Debian 13"
execute_build_image debian13
echo "building package for Ubuntu 20.04"
execute_build_image ubuntu20.04
echo "building package for Ubuntu 22.04"
execute_build_image ubuntu22.04
echo "building package for Ubuntu 24.04"
execute_build_image ubuntu24.04
echo "building package for RedHat el8"
execute_build_image el8
echo "building package for RedHat el9"
execute_build_image el9
echo "building package for RedHat el10"
execute_build_image el10
echo "building package for Amazon 2023"
execute_build_image amzn2023
else
echo "building package for $BUILD_DISTRO"
execute_build_image $BUILD_DISTRO
fi
fi
Loading
Loading