Skip to content

Merge pull request #32 from borchero/no-extract #23

Merge pull request #32 from borchero/no-extract

Merge pull request #32 from borchero/no-extract #23

Workflow file for this run

---
name: Actions Test
on:
push:
pull_request:
jobs:
actions_test:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/metadata-action@v5
id: meta
with:
images: test
- name: Cache
uses: actions/cache@v4
id: cache
with:
path: |
var-cache-apt
var-lib-apt
key: cache-${{ hashFiles('.github/workflows/test/Dockerfile') }}
- name: inject cache into docker
uses: ./
with:
skip-extraction: false
cache-map: |
{
"var-cache-apt": {
"target": "/var/cache/apt",
"id": "1"
},
"var-lib-apt": "/var/lib/apt"
}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .github/workflows/test
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}