Skip to content

Commit fe70265

Browse files
triggers.
1 parent 43c0f94 commit fe70265

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/cicd.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ name: Create and publish a Docker image
33

44
# Configures this workflow to run every time a change is pushed to the branch called `release`.
55
on:
6+
workflow_dispatch:
67
push:
7-
branches: ['main']
8-
9-
8+
branches:
9+
- 'main'
10+
tags:
11+
- 'v*'
12+
pull_request:
13+
branches:
14+
- 'main'
1015

1116
env:
1217
# Sets the Docker image tag to use for the image built in this workflow.
@@ -104,7 +109,7 @@ jobs:
104109
with:
105110
context: .
106111
file: ${{ env.temp_dockerfile }}
107-
push: true
112+
push: ${{ github.event_name != 'pull_request' }}
108113
tags: ${{ steps.meta.outputs.tags }}
109114
labels: ${{ steps.meta.outputs.labels }}
110115

0 commit comments

Comments
 (0)