Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup workflow for hosted runners #1547

Merged
merged 62 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
70a4a07
setup workflow for hosted runners
Stromweld Feb 3, 2024
a3e261c
test
Stromweld Feb 3, 2024
f542b43
test
Stromweld Feb 3, 2024
805b643
test
Stromweld Feb 3, 2024
84645f9
test
Stromweld Feb 3, 2024
891c8a9
test
Stromweld Feb 3, 2024
10aab35
test
Stromweld Feb 3, 2024
7122bc0
test
Stromweld Feb 3, 2024
f93589b
test
Stromweld Feb 3, 2024
de035e2
test
Stromweld Feb 4, 2024
9dcaaa4
test
Stromweld Feb 4, 2024
a401f16
test
Stromweld Feb 4, 2024
ab6907d
test
Stromweld Feb 4, 2024
b9b5dd8
merged with main
Stromweld Apr 26, 2024
4417f5a
test
Stromweld Apr 26, 2024
c13030b
test
Stromweld Apr 26, 2024
06528d5
test
Stromweld Apr 26, 2024
215e59b
test
Stromweld Apr 26, 2024
18b2ed5
test
Stromweld Apr 26, 2024
1eeab71
test
Stromweld Apr 27, 2024
0316b92
test
Stromweld Apr 27, 2024
e95f8b4
test
Stromweld Apr 27, 2024
63e25d7
test
Stromweld Apr 27, 2024
281ce7c
test
Stromweld Apr 27, 2024
23aab70
tst
Stromweld Apr 27, 2024
fe45a36
test
Stromweld Apr 27, 2024
fa23d1b
test
Stromweld Apr 27, 2024
e1f7d49
test
Stromweld Apr 27, 2024
2b12cb4
test
Stromweld Apr 27, 2024
1991404
test
Stromweld Apr 27, 2024
45118b5
test
Stromweld Apr 27, 2024
f1c371a
test
Stromweld Apr 27, 2024
2190063
test
Stromweld Apr 27, 2024
438160b
test
Stromweld Apr 27, 2024
6360378
test
Stromweld Apr 27, 2024
039948e
cleanup
Stromweld Apr 27, 2024
f318cf3
updates
Stromweld Apr 30, 2024
f8830f6
test
Stromweld Apr 30, 2024
4c1fd50
update rhel 9.3 to 9.4 and derivatives
Stromweld May 7, 2024
c04904e
test
Stromweld May 7, 2024
bf0df6a
test
Stromweld May 8, 2024
b37ab4c
test
Stromweld May 8, 2024
0ef2359
test
Stromweld May 9, 2024
7ba35fc
test
Stromweld May 10, 2024
0ca9777
test
Stromweld May 10, 2024
628cb16
test
Stromweld May 10, 2024
526cd64
test
Stromweld May 20, 2024
e4b2f4a
test
Stromweld May 20, 2024
d65ecf3
test
Stromweld May 20, 2024
313d749
test
Stromweld May 20, 2024
2a53e94
test
Stromweld May 22, 2024
1b56f6c
test
Stromweld May 22, 2024
7c4c13c
test
Stromweld May 22, 2024
58588ea
test
Stromweld May 23, 2024
4510abd
Merge remote-tracking branch 'origin/main' into hosted-runners
Stromweld May 23, 2024
bfbb7a8
test
Stromweld May 23, 2024
aa904ad
test
Stromweld May 23, 2024
2a36ecc
test
Stromweld May 23, 2024
08b56ea
test
Stromweld May 23, 2024
7135e8d
final
Stromweld May 23, 2024
2124271
final
Stromweld May 23, 2024
c034994
final
Stromweld May 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ jobs:
allowed-failures:
allowed-skips: ${{ toJSON(needs) }}
jobs: ${{ toJSON(needs) }}

# pkr-bld-parallels-test:
# uses: ./.github/workflows/test-pkr-bld-parallels.yml
# secrets: inherit
6 changes: 5 additions & 1 deletion .github/workflows/pkr-bld-amazonlinux-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
x86_64:
Expand All @@ -28,6 +28,8 @@ jobs:
vagrant --version
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
Expand All @@ -46,6 +48,7 @@ jobs:
sudo chmod -R 777 /mnt/builds
sudo ln -s /mnt/builds ./
eval "$(chef shell-init bash)"
export LOGNAME=$USER
./${{ matrix.os }}-x86_64-virtualbox-build.sh
ls -alh builds
cat builds/${{ matrix.os }}*-x86_64._metadata.json
Expand All @@ -61,4 +64,5 @@ jobs:
- name: Bento Test
run: |
eval "$(chef shell-init bash)"
export LOGNAME=$USER
bento test
48 changes: 29 additions & 19 deletions .github/workflows/pkr-bld-hyperv-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,25 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
x86_64:
runs-on: [self-hosted, X64, hyperv]
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
- fedora-38
- fedora-39
- fedora-40
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand All @@ -38,20 +35,29 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@main
# - name: Setup Packer
# uses: hashicorp/setup-packer@main
# with:
# version: latest
- name: Bento build
run: packer build -timestamp-ui -only="${{ matrix.provider }}.vm" -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates
- name: Remove VM in case of canceled job
if: cancelled()
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
version: latest
- name: Install Bento
run: |
echo Powering off and deleting any existing VMs named ${{ matrix.os }}*-amd64
Stop-VM -Force ${{ matrix.os }}*-amd64
sleep 1
Remove-VM -Force ${{ matrix.os }}*-amd64
sleep 2
chef shell-init powershell
gem build bento.gemspec
gem install bento-*.gem
- name: Create VM Switch for Hyper-V
shell: pwsh
run: |
Get-PsDrive -PsProvider FileSystem
pwd
New-VMSwitch -Name "bento" -NetAdapterName "Ethernet" -AllowManagementOS $true
- name: Packer Init
run: packer init -upgrade packer_templates
- name: Packer build
run: packer build -timestamp-ui -only="${{ matrix.provider }}.vm" -var 'sources_enabled=["hyperv-iso.vm"]' -var-file="os_pkrvars/$("${{ matrix.os }}".Split('-')[0])/${{ matrix.os }}-x86_64.pkrvars.hcl" packer_templates
- name: Upload build artifact
uses: actions/upload-artifact@main
with:
Expand All @@ -61,3 +67,7 @@ jobs:
builds/*.json
retention-days: 10
compression-level: 0 # no compression
- name: Bento Test
run: |
chef shell-init powershell
bento test
5 changes: 1 addition & 4 deletions .github/workflows/pkr-bld-parallels-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
aarch64:
Expand All @@ -15,8 +15,6 @@ jobs:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/pkr-bld-parallels-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
x86_64:
Expand All @@ -15,8 +15,6 @@ jobs:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/pkr-bld-qemu-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ env:

jobs:
aarch64:
runs-on: macos-14
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand All @@ -40,13 +37,17 @@ jobs:
uses: actions/checkout@main
- name: Install Vagrant QEMU
run: |
brew install qemu libvirt
brew tap hashicorp/tap
brew update
brew install qemu
brew install libvirt
brew install --cask hashicorp/tap/hashicorp-vagrant
brew services start libvirt
vagrant plugin install vagrant-libvirt vagrant-qemu
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/pkr-bld-qemu-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
x86_64:
Expand All @@ -15,8 +15,6 @@ jobs:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand All @@ -38,14 +35,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install Vagrant and kvm
- name: Install Vagrant QEMU
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /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
sudo apt-get update
sudo apt-get install -y software-properties-common vagrant qemu-kvm libvirt-daemon-system virtinst libvirt-clients bridge-utils qemu-utils libvirt-dev
vagrant plugin install vagrant-libvirt vagrant-qemu
vagrant --version
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
Expand All @@ -58,6 +54,8 @@ jobs:
sudo systemctl status libvirtd
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/pkr-bld-virtualbox-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ on:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
# PACKER_LOG: "1"

jobs:
aarch64:
runs-on: macos-14
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand All @@ -41,12 +38,13 @@ jobs:
- name: Install Vagrant Virtualbox
run: |
brew tap hashicorp/tap
brew update
brew install --cask hashicorp/tap/hashicorp-vagrant
wget -q https://www.virtualbox.org/download/testcase/VirtualBox-7.0.15_BETA4-162549-macOSArm64.dmg
hdiutil attach VirtualBox-7.0.15_BETA4-162549-macOSArm64.dmg
sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /
brew install --cask virtualbox@beta
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/pkr-bld-virtualbox-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ on:
workflow_call:

env:
PACKER_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
PACKER_LOG: "1"
PACKER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# PACKER_LOG: 1

jobs:
x86_64:
Expand All @@ -15,8 +15,6 @@ jobs:
os:
- almalinux-8
- almalinux-9
- centos-7
- centos-stream-8
- centos-stream-9
- debian-11
- debian-12
Expand All @@ -25,7 +23,6 @@ jobs:
- freebsd-13
- freebsd-14
- opensuse-leap-15
- oraclelinux-7
- oraclelinux-8
- oraclelinux-9
- rockylinux-8
Expand All @@ -38,18 +35,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install Vagrant and VirtualBox
- name: Install Vagrant VirtualBox
run: |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor | sudo tee /usr/share/keyrings/oracle-virtualbox-2016.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/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
sudo apt-get update
sudo apt-get install -y software-properties-common vagrant virtualbox-7.0
VBoxManage --version
vagrant --version
- name: Install Chef
uses: actionshub/[email protected]
with:
version: 24.2.1058
- name: Setup Packer
uses: hashicorp/setup-packer@main
with:
Expand All @@ -66,6 +63,7 @@ jobs:
sudo chmod -R 777 /mnt/builds
sudo ln -s /mnt/builds ./
eval "$(chef shell-init bash)"
export LOGNAME=$USER
bento build -o ${{ matrix.provider }}.vm os_pkrvars/$(echo ${{ matrix.os }} | cut -d "-" -f 1)/"${{ matrix.os }}-x86_64.pkrvars.hcl"
ls -alh builds/
cat builds/${{ matrix.os }}*-x86_64._metadata.json
Expand All @@ -81,4 +79,5 @@ jobs:
- name: Bento Test
run: |
eval "$(chef shell-init bash)"
export LOGNAME=$USER
bento test
Loading
Loading