Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
Split build and push
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Oct 11, 2024
1 parent f230570 commit 18b11b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,19 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: build-and-push
- name: Build Docker image
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
load: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ fromJSON(steps.meta.outputs.json).tags[0] }}
cache-to: inline

- name: Push Docker image
uses: docker/build-push-action@v4
if: ${{ github.event_name != 'pull_request' }}
with:
push: true
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 18b11b8

Please sign in to comment.