Skip to content

Commit

Permalink
chore(ci): Install salt-minion for tests from broadcom
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Nov 1, 2024
1 parent 0f00078 commit 1bd960d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,17 @@ jobs:

- name: Install and configure salt-minion
run: |
# Download public key
keyring_file="/etc/apt/keyrings/salt-archive-keyring-2023.pgp"
sudo curl -o "${keyring_file}" -fsSL "https://packages.broadcom.com/artifactory/api/security/keypair/SaltProjectKey/public"
# Create apt repo target configuration
target_url="https://packages.broadcom.com/artifactory/saltproject-deb/"
echo "deb [signed-by=${keyring_file} arch=amd64] ${target_url} stable main" | sudo tee /etc/apt/sources.list.d/salt.list
# Install salt-minion from salt repos
salt_bootstrap_url="https://github.com/saltstack/salt-bootstrap/releases/latest/download/bootstrap-salt.sh"
curl -o bootstrap-salt.sh -L "${salt_bootstrap_url}"
sudo sh bootstrap-salt.sh -dXP stable
sudo systemctl stop salt-minion
sudo systemctl disable salt-minion
sudo rm -f /var/log/salt/minion
sudo apt-get update
sudo apt-get install -y salt-minion
- name: Install tests utils
run: |
Expand Down

0 comments on commit 1bd960d

Please sign in to comment.