Skip to content

Commit

Permalink
Push only on main
Browse files Browse the repository at this point in the history
  • Loading branch information
strokyl committed Feb 14, 2024
1 parent 0cdb39b commit e4b3481
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
type: boolean
description: (bool) Whether this is a release or not
default: false
push:
required: false
type: boolean
description: (bool) Whether we should push the image or not
default: true
env:
NAMESPACE: "conduktor"
LABEL_IMAGE_AUTHORS: "Conduktor <[email protected]>"
Expand Down Expand Up @@ -67,7 +72,7 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
push: &{{ inputs.push }}
file: docker/Dockerfile
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize, labeled]
jobs:
Expand All @@ -24,6 +27,7 @@ jobs:
needs: [unit-test, integration-test]
with:
release: false
push: github.ref_name == 'main'
image_tags: |
type=sha
type=ref,event=branch
Expand Down

0 comments on commit e4b3481

Please sign in to comment.