Skip to content

Commit f99000e

Browse files
authored
cicd when release
1 parent c39b9a2 commit f99000e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/image.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ 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:
7-
push:
8-
branches: ["main"]
9-
pull_request:
10-
branches: ["main"]
6+
release:
7+
types: [created]
8+
workflow_dispatch:
119

1210
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
1311
env:

0 commit comments

Comments
 (0)