We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84ff5aa commit 6618e73Copy full SHA for 6618e73
1 file changed
.circleci/config.yml
@@ -81,6 +81,18 @@ commands:
81
command: |
82
docker login -u $DOCKER_USER -p $DOCKER_PASS
83
docker push rubylang/ruby
84
+ push_image_by_tag:
85
+ description: "Push Docker image"
86
+ parameters:
87
+ tag:
88
+ type: string
89
+ default: ""
90
+ steps:
91
+ - run:
92
+ name: Push docker image
93
+ command: |
94
+ docker login -u $DOCKER_USER -p $DOCKER_PASS
95
+ echo docker push rubylang/ruby << parameters.tag >>
96
97
jobs:
98
build_master:
@@ -131,6 +143,10 @@ jobs:
131
143
condition: <<parameters.push>>
132
144
steps:
133
145
- push_image
146
+ - when:
147
+ condition: <<parameters.tag>>
148
149
+ - push_image_by_tag
134
150
135
151
build_master_debug:
136
152
parameters:
0 commit comments