From 3e4319c4ef6991c3598e420a8f960be6167b9742 Mon Sep 17 00:00:00 2001 From: Simon Guigui Date: Wed, 5 Apr 2023 16:38:12 +0200 Subject: [PATCH] fix: /var/apt/lists may not exist --- .github/workflows/cicd.yml | 29 +++++++++++++++++++++++------ README.md | 2 +- action.yml | 1 + renovate.json | 4 +--- 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 78432b4..9f2ad66 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -4,7 +4,7 @@ on: push: jobs: - test-vm: + test-ubuntu-latest: runs-on: ubuntu-latest steps: - name: Checkout @@ -18,7 +18,7 @@ jobs: kustomize=4.4.1* kubectl=1.22.4* - test-container: + test-container-debian-bullseye: runs-on: ubuntu-latest container: image: debian:bullseye @@ -30,14 +30,31 @@ jobs: uses: ./ with: packages: | - helm=3.7.2* - kustomize=4.4.1* - kubectl=1.22.4* + bat + + test-container-wakemeops-bullseye: + runs-on: ubuntu-latest + container: + image: wakemeops/debian:bullseye + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install packages + uses: ./ + with: + packages: | + bat release: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') - needs: [test-container, test-vm] + needs: + [ + test-ubuntu-latest, + test-container-debian-bullseye, + test-container-wakemeops-bullseye, + ] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/README.md b/README.md index e37af6d..03ad146 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This action lets you easily install packages from the WakeMeOps Debian repository on linux runners. -WakeMeOps is a Debian repository containing - among other things - up-to-date devops tools such as kubectl, kustomize, helm, helmfile, ... +WakeMeOps is a Debian repository containing - among other things - up-to-date devops tools such as kubectl, kustomize, helm, helmfile, ... For more information see https://docs.wakemeops.com and https://github.com/upciti/wakemeops. diff --git a/action.yml b/action.yml index b637325..a4c0bca 100644 --- a/action.yml +++ b/action.yml @@ -19,6 +19,7 @@ runs: - name: Fix APT cache permission run: | source $GITHUB_ACTION_PATH/utils.sh + mkdir -p /var/cache/apt /var/lib/apt/lists/ sudo chown -R "$(id -u)" /var/cache/apt /var/lib/apt/lists/ shell: bash diff --git a/renovate.json b/renovate.json index 39a2b6e..4bd832f 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base" - ] + "extends": ["config:base"] }