Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use caches to share layers #9

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading