We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef19d60 commit 6b00374Copy full SHA for 6b00374
.github/workflows/docker_publish.yml renamed to .github/workflows/docker_build_test_publish.yml
@@ -1,8 +1,15 @@
1
-name: Publish docker image
+name: Docker Image
2
3
on:
4
schedule:
5
- cron: "0 3 * * *" # At 03:00 every day
6
+ pull_request_target:
7
+ branches:
8
+ - 'main'
9
+ types:
10
+ - 'opened'
11
+ - 'reopened'
12
+ - 'synchronize'
13
workflow_dispatch:
14
inputs:
15
git_ref:
@@ -21,7 +28,7 @@ on:
21
28
default: trunk
22
29
description: "docker image tag"
23
30
jobs:
24
- build:
31
+ build-test-publish:
25
32
runs-on: [self-hosted, auto-provisioned]
26
33
steps:
27
34
- name: Checkout .github
@@ -102,6 +109,7 @@ jobs:
102
109
docker stop local-ydb-test || true
103
110
104
111
- name: Push docker image
112
+ if: ${{ github.event_name != 'pull_request_target' }}
105
113
uses: docker/build-push-action@v4
106
114
with:
107
115
context: .
0 commit comments