mirror of
https://github.com/techno-tim/k3s-ansible.git
synced 2026-03-11 23:32:12 +01:00
fix(ci): self-hosted
This commit is contained in:
26
.github/workflows/cache.yml
vendored
26
.github/workflows/cache.yml
vendored
@@ -30,15 +30,15 @@ jobs:
|
|||||||
# restore-keys: |
|
# restore-keys: |
|
||||||
# ansible-
|
# ansible-
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: |
|
# run: |
|
||||||
echo "::group::Upgrade pip"
|
# echo "::group::Upgrade pip"
|
||||||
python3 -m pip install --upgrade pip
|
# python3 -m pip install --upgrade pip
|
||||||
echo "::endgroup::"
|
# echo "::endgroup::"
|
||||||
|
|
||||||
echo "::group::Install Python requirements from requirements.txt"
|
# echo "::group::Install Python requirements from requirements.txt"
|
||||||
python3 -m pip install -r requirements.txt
|
# python3 -m pip install -r requirements.txt
|
||||||
echo "::endgroup::"
|
# echo "::endgroup::"
|
||||||
|
|
||||||
# - name: Install ansible dependencies
|
# - name: Install ansible dependencies
|
||||||
# if: steps.cache-ansible.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
# if: steps.cache-ansible.outputs.cache-hit != 'true' # only run if false since this is just a cache step
|
||||||
@@ -58,11 +58,11 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
vagrant-boxes
|
vagrant-boxes
|
||||||
|
|
||||||
- name: install apt packages
|
# - name: install apt packages
|
||||||
run: |
|
# run: |
|
||||||
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
# wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
# echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
||||||
sudo apt update && sudo apt -y install vagrant virtualbox
|
# sudo apt update && sudo apt -y install vagrant virtualbox
|
||||||
|
|
||||||
|
|
||||||
# - name: Configure Homebrew cache
|
# - name: Configure Homebrew cache
|
||||||
|
|||||||
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -58,11 +58,11 @@ jobs:
|
|||||||
# vagrant --version
|
# vagrant --version
|
||||||
# vboxmanage --version
|
# vboxmanage --version
|
||||||
|
|
||||||
- name: install apt packages
|
# - name: install apt packages
|
||||||
run: |
|
# run: |
|
||||||
wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
# wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
# echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
|
||||||
sudo apt update && sudo apt -y install vagrant virtualbox
|
# sudo apt update && sudo apt -y install vagrant virtualbox
|
||||||
|
|
||||||
- name: Restore vagrant Boxes cache
|
- name: Restore vagrant Boxes cache
|
||||||
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
uses: actions/cache/restore@13aacd865c20de90d75de3b17ebe84f7a17d57d2 # 4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user