diff --git a/.github/workflows/publish-mc-packages.yml b/.github/workflows/publish-mc-packages.yml index 9bfac7f..2d4efa6 100644 --- a/.github/workflows/publish-mc-packages.yml +++ b/.github/workflows/publish-mc-packages.yml @@ -137,9 +137,9 @@ jobs: - name: Install Hazelcast Management Center from DEB run: | source ./common.sh - wget -qO - https://repository.hazelcast.com/api/gpg/key/public | sudo apt-key add - - echo "deb ${DEBIAN_REPO_BASE_URL} ${PACKAGE_REPO} main" | sudo tee -a /etc/apt/sources.list - sudo apt update && sudo apt install hazelcast-management-center=${MC_VERSION} + wget -qO - https://repository.hazelcast.com/api/gpg/key/public | 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-get update --allow-unauthenticated && sudo apt-get install hazelcast-management-center=${MC_VERSION} /usr/lib/hazelcast-management-center/bin/hz-mc start -Dhazelcast.mc.healthCheck.enable=true > hz-mc.log 2>&1 & - name: Check Hazelcast Management Center Health @@ -215,7 +215,10 @@ jobs: run: | source ./common.sh yum install -y wget - 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 hazelcast-management-center-${RPM_MC_VERSION} /usr/lib/hazelcast-management-center/bin/hz-mc start -Dhazelcast.mc.healthCheck.enable=true > hz-mc.log 2>&1 & diff --git a/README.md b/README.md index fa45adf..f293a1c 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ You can find the Debian packages for Hazelcast Management Center at Run the following commands to install the package using apt: ``` -wget -qO - https://repository.hazelcast.com/api/gpg/key/public | sudo apt-key add - -echo "deb https://repository.hazelcast.com/debian stable main" | sudo tee -a /etc/apt/sources.list +wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null +echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] https://repository.hazelcast.com/debian stable main" | sudo tee -a /etc/apt/sources.list sudo apt update && sudo apt install hazelcast-management-center ``` @@ -125,8 +125,8 @@ repository definition to use Hazelcast Management Center snapshots. Run the following to install the latest snapshot version: ``` -wget -qO - https://repository.hazelcast.com/api/gpg/key/public | sudo apt-key add - -echo "deb https://repository.hazelcast.com/debian snapshot main" | sudo tee -a /etc/apt/sources.list +wget -qO - https://repository.hazelcast.com/api/gpg/key/public | gpg --dearmor | sudo tee /usr/share/keyrings/hazelcast-archive-keyring.gpg > /dev/null +echo "deb [signed-by=/usr/share/keyrings/hazelcast-archive-keyring.gpg] https://repository.hazelcast.com/debian snapshot main" | sudo tee -a /etc/apt/sources.list sudo apt update && sudo apt install hazelcast-management-center ```