Skip to content

Commit

Permalink
fix: /var/apt/lists may not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
fyhertz committed Apr 5, 2023
1 parent 60ff8ff commit 3e4319c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
test-vm:
test-ubuntu-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
"extends": ["config:base"]
}

0 comments on commit 3e4319c

Please sign in to comment.