diff --git a/.github/workflows/build_docker_image.yml b/.github/workflows/build_docker_image.yml index 47eb068..c5096e0 100644 --- a/.github/workflows/build_docker_image.yml +++ b/.github/workflows/build_docker_image.yml @@ -4,6 +4,7 @@ on: push: branches: - 'master' + - 'dev' # Sequence of patterns matched against refs/tags tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 @@ -71,6 +72,8 @@ jobs: uses: docker/build-push-action@v4 with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max