pull before build and test

This commit is contained in:
Thephaseless 2024-12-11 01:02:59 +00:00
parent 6b95a8700c
commit dbdce3d05a

View File

@ -80,6 +80,7 @@ jobs:
context: . context: .
platforms: linux/amd64 platforms: linux/amd64
cache-from: type=gha cache-from: type=gha
pull: true
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
target: test target: test
@ -90,6 +91,7 @@ jobs:
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: . context: .
pull: true
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}