Skip to content

Commit

Permalink
Merge commit 'a9dc5d683761e08ad04513a979601dd933165c27'
Browse files Browse the repository at this point in the history
  • Loading branch information
slabajo committed Nov 6, 2024
2 parents eaa46a0 + a9dc5d6 commit 011d53d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/server-buildpackage-rust.child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
JOB_GIT_NAME: "${{ inputs.jobGitName }}"
JOB_DISTRO: "${{ matrix.jobDistro }}"
JOB_RELEASE: "${{ inputs.jobRelease }}"
APT_PROXY_URL: "${{ vars.APT_PROXY_URL }}"
DISABLE_APT_PROXY: "true"
working-directory: "${{ inputs.directory }}"
run: "ci_job_package_gst_rust_debian.sh"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/server-buildpackage.child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ jobs:
JOB_GIT_NAME: "${{ inputs.jobGitName }}"
JOB_GIT_NAME_FALLBACK: "${{ inputs.jobGitNameFallback }}"
JOB_RELEASE: "${{ inputs.jobRelease }}"
APT_PROXY_URL: "${{ vars.APT_PROXY_URL }}"
DISABLE_APT_PROXY: "true"
INSTALL_PATH: "${{ steps.copy-artifacts.outputs.download-path }}"
working-directory: "${{ inputs.directory }}"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/server-deploy-debian.child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,6 @@ jobs:
JOB_RELEASE: "${{ inputs.jobRelease }}"
JOB_DEPLOY_NAME: "${{ inputs.jobDeployName }}"
APTLY_GPG_SUBKEY: "${{ vars.APTLY_GPG_SUBKEY }}"
APTLY_SERVER: "${{ vars.APTLY_SERVER }}"
working-directory: "artifacts/"
run: "ci_job_deploy_debian.sh"
15 changes: 10 additions & 5 deletions ci-scripts/ci_job_deploy_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
#/
#/ * Variable(s) from Jenkins global configuration:
#/
#/ APTLY_SERVER
#/
#/ IP address of the ssh server that hosts the aptly service. A DNS name is not allowed just an IPv4
#/
#/ APTLY_GPG_SUBKEY
#/
#/ The GnuPG key used to sign Debian package repositories with Aptly.
Expand Down Expand Up @@ -128,6 +132,7 @@ docker run --pull always --rm -i \
--mount type=bind,src="$KURENTO_SCRIPTS_HOME",dst=/ci-scripts \
--mount type=bind,src="$APTLY_SSH_KEY_PATH",dst=/id_aptly_ssh \
--mount type=bind,src="$PWD",dst=/workdir \
--add-host aptly=$APTLY_SERVER \
--workdir /workdir \
buildpack-deps:20.04-scm /bin/bash <<DOCKERCOMMANDS
Expand All @@ -141,25 +146,25 @@ set -o xtrace
# Exit trap, used to clean up.
on_exit() {
ssh -n -o StrictHostKeyChecking=no -i /id_aptly_ssh \
aptly@aptly.naevatec.com -p 3322 '\
aptly@aptly -p 3322 '\
rm -rf "$TEMP_DIR"'
}
trap on_exit EXIT
ssh -n -o StrictHostKeyChecking=no -i /id_aptly_ssh \
aptly@aptly.naevatec.com -p 3322 '\
aptly@aptly -p 3322 '\
mkdir -p "$TEMP_DIR"'
scp -o StrictHostKeyChecking=no -i /id_aptly_ssh \
-P 3322 ./*.*deb \
aptly@aptly.naevatec.com:"$TEMP_DIR"
aptly@aptly:"$TEMP_DIR"
scp -o StrictHostKeyChecking=no -i /id_aptly_ssh \
-P 3322 /ci-scripts/ci_aptly_repo_publish.sh \
aptly@aptly.naevatec.com:"$TEMP_DIR"
aptly@aptly:"$TEMP_DIR"
ssh -n -o StrictHostKeyChecking=no -i /id_aptly_ssh \
aptly@aptly.naevatec.com -p 3322 '\
aptly@aptly -p 3322 '\
cd "$TEMP_DIR" \
&& GPGKEY="$APTLY_GPG_SUBKEY" \
./ci_aptly_repo_publish.sh $PUBLISH_ARGS'
Expand Down
7 changes: 6 additions & 1 deletion ci-scripts/ci_job_package_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#/ Added for GitHub Actions: No proxy is needed.
#/ Optional.
#/
#/ APT_PROXY_URL
#/
#/ Sets the URL that points to the Apt proxy to be used (if not diabled)
#/ Madatory if DISABLE_APT_PROXY is set to false
#/
#/ INSTALL_PATH
#/
#/ Path where to find the packages that should be installed.
Expand Down Expand Up @@ -96,7 +101,7 @@ if [[ "$JOB_RELEASE" == "true" ]]; then
fi

if [[ "${DISABLE_APT_PROXY:-}" != "true" ]]; then
KURENTO_BUILDPACKAGE_ARGS+=(--apt-proxy http://apt-proxy.naevatec.com:3142)
KURENTO_BUILDPACKAGE_ARGS+=(--apt-proxy "$APT_PROXY_URL")
fi


Expand Down
7 changes: 6 additions & 1 deletion ci-scripts/ci_job_package_gst_rust_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#/ Added for GitHub Actions: No proxy is needed.
#/ Optional.
#/
#/ APT_PROXY_URL
#/
#/ Sets the URL that points to the Apt proxy to be used (if not diabled)
#/ Madatory if DISABLE_APT_PROXY is set to false
#/
#/ INSTALL_PATH
#/
#/ Path where to find the packages that should be installed.
Expand Down Expand Up @@ -104,7 +109,7 @@ if [[ "$JOB_RELEASE" == "true" ]]; then
fi

if [[ "${DISABLE_APT_PROXY:-}" != "true" ]]; then
KURENTO_BUILDPACKAGE_ARGS+=(--apt-proxy http://apt-proxy.naevatec.com:3142)
KURENTO_BUILDPACKAGE_ARGS+=(--apt-proxy "$APT_PROXY_URL")
fi
if [[ -n "$GST_RUST_PACKAGE" ]]; then
KURENTO_BUILDPACKAGE_ARGS+=(--package "$GST_RUST_PACKAGE")
Expand Down

0 comments on commit 011d53d

Please sign in to comment.