Skip to content

Commit

Permalink
use cache
Browse files Browse the repository at this point in the history
  • Loading branch information
zsteinkamp committed Mar 26, 2024
1 parent 492178c commit f3a06f1
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
push: true
tags: ${{ steps.nginx_meta.outputs.tags }}
labels: ${{ steps.nginx_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

## API CONTAINER
- name: api Docker meta
Expand All @@ -77,7 +79,7 @@ jobs:
tags: |
type=ref,event=branch
type=sha
- name: Build and push Docker image
- name: api Build and push Docker image
uses: docker/build-push-action@v5
with:
context: backend/
Expand All @@ -86,6 +88,8 @@ jobs:
push: true
tags: ${{ steps.api_meta.outputs.tags }}
labels: ${{ steps.api_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

## WATCHER CONTAINER
- name: watcher Docker meta
Expand All @@ -97,7 +101,7 @@ jobs:
tags: |
type=ref,event=branch
type=sha
- name: Build and push Docker image
- name: watcher Build and push Docker image
uses: docker/build-push-action@v5
with:
context: backend/
Expand All @@ -106,6 +110,8 @@ jobs:
push: true
tags: ${{ steps.watcher_meta.outputs.tags }}
labels: ${{ steps.watcher_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

## ADMIN CONTAINER
- name: admin Docker meta
Expand All @@ -117,7 +123,7 @@ jobs:
tags: |
type=ref,event=branch
type=sha
- name: Build and push Docker image
- name: admin Build and push Docker image
uses: docker/build-push-action@v5
with:
context: backend/
Expand All @@ -126,3 +132,5 @@ jobs:
push: true
tags: ${{ steps.admin_meta.outputs.tags }}
labels: ${{ steps.admin_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit f3a06f1

Please sign in to comment.