added github actions cache
This commit is contained in:
@@ -34,10 +34,12 @@ jobs:
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
run: echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64, linux/amd64
|
||||
push: true
|
||||
build-args: |
|
||||
@@ -45,6 +47,8 @@ jobs:
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:latest
|
||||
ghcr.io/${{ github.repository_owner }}/blog-ahmza-com:${{ github.event.head_commit.id }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
deployment:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
|
||||
Reference in New Issue
Block a user