Skip to content

Commit 9a507be

Browse files
committed
👷 Push latest on release, not on push to main
1 parent b09c53d commit 9a507be

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.circleci/main.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,8 @@ jobs:
197197
at: /home/circleci/
198198
- push-to-docker-hub:
199199
tag: release-$CIRCLE_TAG
200+
- push-to-docker-hub:
201+
tag: latest
200202
push-branch-to-docker-hub:
201203
parameters:
202204
variant:
@@ -213,12 +215,6 @@ jobs:
213215
steps:
214216
- set-up-variant:
215217
variant: "<< parameters.variant >>"
216-
- when:
217-
condition:
218-
equal: [ << pipeline.parameters.branch >>, "main" ]
219-
steps:
220-
- push-to-docker-hub:
221-
tag: latest
222218
- when:
223219
condition:
224220
equal: [ << pipeline.parameters.branch >>, "develop" ]
@@ -294,7 +290,6 @@ workflows:
294290
filters:
295291
branches:
296292
only:
297-
- main
298293
- develop
299294
matrix:
300295
parameters:

0 commit comments

Comments
 (0)