Merge pull request #393 from anmol098/feat/docker_build_cache

Docker build cache enabled
This commit is contained in:
Aravind Nair
2023-02-28 02:36:48 +05:30
committed by GitHub

View File

@@ -16,6 +16,9 @@ jobs:
- name: Checkout 🛎️ - name: Checkout 🛎️
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up Docker Buildx 🐋
uses: docker/setup-buildx-action@v2
- name: Log in to the container registry 🚪 - name: Log in to the container registry 🚪
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
@@ -39,3 +42,5 @@ jobs:
push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/releases') }} push: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/releases') }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max