We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43c0f94 commit fe70265Copy full SHA for fe70265
.github/workflows/cicd.yaml
@@ -3,10 +3,15 @@ name: Create and publish a Docker image
3
4
# Configures this workflow to run every time a change is pushed to the branch called `release`.
5
on:
6
+ workflow_dispatch:
7
push:
- branches: ['main']
8
-
9
+ branches:
+ - 'main'
10
+ tags:
11
+ - 'v*'
12
+ pull_request:
13
14
15
16
env:
17
# Sets the Docker image tag to use for the image built in this workflow.
@@ -104,7 +109,7 @@ jobs:
104
109
with:
105
110
context: .
106
111
file: ${{ env.temp_dockerfile }}
107
- push: true
112
+ push: ${{ github.event_name != 'pull_request' }}
108
113
tags: ${{ steps.meta.outputs.tags }}
114
labels: ${{ steps.meta.outputs.labels }}
115
0 commit comments