Skip to content

Commit

Permalink
ci (release.yml): add apt caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pythoninthegrass committed Sep 15, 2024
1 parent 2c37192 commit 379f164
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Cache APT packages
uses: actions/cache@v4
with:
path: |
~/.apt/archives
~/.apt/lists
key: ${{ runner.os }}-apt-${{ hashFiles('**/package-lock.json') }}-libfyaml-utils
restore-keys: |
${{ runner.os }}-apt-${{ hashFiles('**/package-lock.json') }}-
${{ runner.os }}-apt-
- name: Install dependencies
run: sudo apt-get install -y libfyaml-utils

Expand All @@ -44,9 +55,9 @@ jobs:
runs-on: ubuntu-latest
needs: verify-image
permissions:
contents: write # Allow actions to create release
contents: write # Allow actions to create release
attestations: write # To create and write attestations
id-token: write # Additional permissions for the persistence of the attestations
id-token: write # Additional permissions for the persistence of the attestations

steps:
- name: Checkout
Expand All @@ -56,17 +67,17 @@ jobs:

- uses: vanilla-os/vib-gh-action@v0.8.1
with:
recipe: 'recipe.yml'
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3'
recipe: 'recipe.yml'
plugins: 'Vanilla-OS/vib-fsguard:v1.5.3'

- uses: actions/upload-artifact@v4
with:
name: Containerfile
path: Containerfile
name: Containerfile
path: Containerfile

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "${{ github.ref_name }}" --generate-notes Containerfile

- name: Attest Release Files
Expand Down

0 comments on commit 379f164

Please sign in to comment.