From ea3ac5cc1732d25320c68d474870ae1d05a3a2e4 Mon Sep 17 00:00:00 2001 From: Steve Traylen Date: Wed, 24 Jan 2024 15:12:09 +0100 Subject: [PATCH] Always refresh apt metadata Before running `apt-get install` always refresh the metadata. --- .github/workflows/beaker.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/beaker.yml b/.github/workflows/beaker.yml index 5a25483..8135392 100644 --- a/.github/workflows/beaker.yml +++ b/.github/workflows/beaker.yml @@ -85,7 +85,9 @@ jobs: - uses: actions/checkout@v4 - name: install additional packages if: ${{ inputs.additional_packages != '' }} - run: sudo apt-get install -y ${{ inputs.additional_packages }} + run: | + sudo apt-get update + sudo apt-get install -y ${{ inputs.additional_packages }} - name: Setup ruby uses: ruby/setup-ruby@v1 with: @@ -121,7 +123,9 @@ jobs: - uses: actions/checkout@v4 - name: install additional packages if: ${{ inputs.additional_packages != '' }} - run: sudo apt-get install -y ${{ inputs.additional_packages }} + run: | + sudo apt-get update + sudo apt-get install -y ${{ inputs.additional_packages }} - name: Setup ruby uses: ruby/setup-ruby@v1 with: @@ -150,10 +154,13 @@ jobs: - uses: actions/checkout@v4 - name: install additional packages if: ${{ inputs.additional_packages != '' }} - run: sudo apt-get install -y ${{ inputs.additional_packages }} + run: | + sudo apt-get update + sudo apt-get install -y ${{ inputs.additional_packages }} - name: Setup libvirt for Vagrant if: ${{ inputs.beaker_hypervisor == 'vagrant_libvirt' }} run: | + sudo apt-get update sudo apt-get install -y --no-install-recommends vagrant vagrant-libvirt libvirt-clients libvirt-daemon-system libvirt-daemon qemu qemu-system-x86 qemu-utils sudo chmod 666 /var/run/libvirt/libvirt-sock - name: Setup ruby