Skip to content

Commit

Permalink
docker: Add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Jan 29, 2024
1 parent d023113 commit 4d1a1b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker-build-env.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Docker Build Environment Image CI

on:
push:
branches: master
paths:
- '**Dockerfile-build-env'
- '**docker-build-env.yml'
workflow_dispatch:
schedule:
- cron: '30 11 20 * *'
Expand Down Expand Up @@ -42,3 +47,5 @@ jobs:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ secrets.UNCLE_ANDY_DOCKERHUB_USERNAME }}/netpanzer-build-env:${{ matrix.tag }}
cache-from: type=registry,ref=${{ secrets.UNCLE_ANDY_DOCKERHUB_USERNAME }}/netpanzer-build-env:buildcache
cache-to: type=registry,ref=${{ secrets.UNCLE_ANDY_DOCKERHUB_USERNAME }}/netpanzer-build-env:buildcache,mode=max

0 comments on commit 4d1a1b3

Please sign in to comment.