Merge pull request #32 from borchero/no-extract #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |