Skip to content

Commit c5b8750

Browse files
committed
fix(ci): fixing automatic build process
1 parent f5d14f0 commit c5b8750

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
65
pull_request:
7-
branches: [ main ]
6+
workflow_call:
7+
88

99
env:
1010
GO_VERSION: '1.25'

.github/workflows/docker.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches: [ main ]
66
tags: [ 'v*' ]
7-
pull_request:
8-
branches: [ main ]
97

108
env:
119
REGISTRY: ghcr.io
@@ -18,7 +16,7 @@ jobs:
1816
build-and-push:
1917
needs: ci
2018
runs-on: ubuntu-latest
21-
if: github.ref == 'refs/heads/main'
19+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
2220
permissions:
2321
contents: read
2422
packages: write

0 commit comments

Comments
 (0)