Skip to content

Commit

Permalink
Merge pull request #9 from webcomics/more-cache
Browse files Browse the repository at this point in the history
Use caches to share layers
  • Loading branch information
TobiX authored Feb 28, 2024
2 parents 9365646 + e83f2d9 commit 6e5b288
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
WINE_FLAVOUR=stable
cache-to: type=local,dest=/tmp/buildx-cache,mode=max

- name: Build devel
uses: docker/build-push-action@v5
Expand All @@ -48,6 +49,7 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
WINE_FLAVOUR=devel
cache-from: type=local,src=/tmp/buildx-cache

- name: Build staging
uses: docker/build-push-action@v5
Expand All @@ -57,3 +59,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
WINE_FLAVOUR=staging
cache-from: type=local,src=/tmp/buildx-cache
27 changes: 26 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,36 @@
---
name: Test Docker image
on:
- pull_request

permissions:
contents: read

jobs:
build:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Build image
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build stable
uses: docker/build-push-action@v5
with:
build-args: |
WINE_FLAVOUR=stable
cache-to: type=local,dest=/tmp/buildx-cache,mode=max

- name: Build devel
uses: docker/build-push-action@v5
with:
build-args: |
WINE_FLAVOUR=devel
cache-from: type=local,src=/tmp/buildx-cache

- name: Build staging
uses: docker/build-push-action@v5
with:
build-args: |
WINE_FLAVOUR=staging
cache-from: type=local,src=/tmp/buildx-cache

0 comments on commit 6e5b288

Please sign in to comment.