try build-push-action

This commit is contained in:
Blake Blackshear 2022-11-23 15:42:39 -06:00
parent 3386887838
commit dce1dc1d03

View File

@ -27,7 +27,12 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image - name: Build and push
run: make push uses: docker/build-push-action@v3
env: with:
IMAGE_REPO: ghcr.io/${{ github.actor }}/frigate context: .
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: "ghcr.io/blakeblackshear/frigate:${GITHUB_REF_NAME}-${GITHUB_SHA::7}"
cache-from: type=gha
cache-to: type=gha,mode=max