Skip to content

Commit 6618e73

Browse files
committed
push only specified docker image by tag (debug)
1 parent 84ff5aa commit 6618e73

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,18 @@ commands:
8181
command: |
8282
docker login -u $DOCKER_USER -p $DOCKER_PASS
8383
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 >>
8496
8597
jobs:
8698
build_master:
@@ -131,6 +143,10 @@ jobs:
131143
condition: <<parameters.push>>
132144
steps:
133145
- push_image
146+
- when:
147+
condition: <<parameters.tag>>
148+
steps:
149+
- push_image_by_tag
134150

135151
build_master_debug:
136152
parameters:

0 commit comments

Comments
 (0)