Skip to content

Commit

Permalink
Make test-local repos private [DI-222] [5.4.z] (#217)
Browse files Browse the repository at this point in the history
Backport of #214
  • Loading branch information
JackPGreen committed Aug 5, 2024
1 parent cb4d628 commit 50c80de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/publish-deb-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ jobs:
HZ_LICENSEKEY: ${{ secrets.HZ_LICENSEKEY }}
run: |
source ./common.sh
wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null
wget \
https://repository.hazelcast.com/api/gpg/key/public \
--header "Authorization: Bearer ${{ env.JFROG_TOKEN }}" \
--output-document - \
--quiet \
| gpg --dearmor \
| sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] ${DEBIAN_REPO_BASE_URL} ${PACKAGE_REPO} main" | sudo tee -a /etc/apt/sources.list
sudo apt update && sudo apt install ${{ env.HZ_DISTRIBUTION}}=${HZ_VERSION}
HAZELCAST_CONFIG="$(pwd)/config/integration-test-hazelcast.yaml" hz-start > hz.log 2>&1 &
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-rpm-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ jobs:
HZ_LICENSEKEY: ${{ secrets.HZ_LICENSEKEY }}
run: |
source ./common.sh
wget ${RPM_REPO_BASE_URL}/${PACKAGE_REPO}/hazelcast-rpm-${PACKAGE_REPO}.repo -O hazelcast-rpm-${PACKAGE_REPO}.repo
wget \
${RPM_REPO_BASE_URL}/${PACKAGE_REPO}/hazelcast-rpm-${PACKAGE_REPO}.repo \
--header "Authorization: Bearer ${{ env.JFROG_TOKEN }}" \
--output-document hazelcast-rpm-${PACKAGE_REPO}.repo
mv hazelcast-rpm-${PACKAGE_REPO}.repo /etc/yum.repos.d/
yum install -y ${{ env.HZ_DISTRIBUTION}}-${RPM_HZ_VERSION}
HAZELCAST_CONFIG="$(pwd)/config/integration-test-hazelcast.yaml" hz-start > hz.log 2>&1 &
Expand Down

0 comments on commit 50c80de

Please sign in to comment.