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

Commit

Permalink
github/workflows/docker-push: add branch trigger
Browse files Browse the repository at this point in the history
I'm not sure if this is going to work, I'm gonna give it a try. The idea
is to be able to prime the cache on pushes to the main branch, but not
build the actual image.
  • Loading branch information
fsouza committed May 10, 2023
1 parent 52e02e7 commit 3200510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: docker-push
on:
push:
branches:
- main
tags:
- "*"

Expand Down Expand Up @@ -41,7 +43,7 @@ jobs:
cache-from: fsouzaci/gha-cache:s3-upload-proxy
cache-to: fsouzaci/gha-cache:s3-upload-proxy
context: .
push: true
push: ${{ github.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

0 comments on commit 3200510

Please sign in to comment.