Skip to content

Commit 472fced

Browse files
committed
fix(ci): purge unused dependencies
Jobs such as host image build fail as `docker-buildx-plugin` is installed when attempting to install `docker-buildx`. As they share the same path the task fails. Purging unused packages avoid this issue. ``` trying to overwrite '/usr/libexec/docker/cli-plugins/docker-buildx', which is also in package docker-buildx-plugin 0.29.1-1~ubuntu.22.04~jammy ```
1 parent b0868db commit 472fced

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/overcloud-host-image-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ jobs:
212212
source src/kayobe-config/kayobe-env --environment ci-builder &&
213213
kayobe seed host configure -e seed_bootstrap_user=ubuntu --skip-tags network
214214
215+
- name: Remove unused dependencies
216+
run: |
217+
source venvs/kayobe/bin/activate &&
218+
source src/kayobe-config/kayobe-env --environment ci-builder &&
219+
kayobe seed host command run \
220+
--command "sudo apt update && sudo apt autoremove --purge -y && sudo apt purge -y docker-buildx-plugin" --show-output
221+
env:
222+
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
223+
215224
- name: Install dependencies
216225
run: |
217226
source venvs/kayobe/bin/activate &&

0 commit comments

Comments
 (0)