Skip to content

Commit

Permalink
Push stable images to dockerhub (#3)
Browse files Browse the repository at this point in the history
* push to dockerhub

* Use scratch image
  • Loading branch information
osterman authored May 22, 2018
1 parent d2d91ab commit d614888
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM alpine:3.7
FROM scratch
COPY aws/ /aws
WORKDIR /aws
29 changes: 27 additions & 2 deletions codefresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,44 @@ steps:
all:
executeForBranch: "'${{SEMVERSION_BRANCH}}' != ''"

push_image_tag:
push_image_tag_to_cfcr:
title: Push image with tag based semver tags
type: push
registry: cfcr
candidate: ${{build_image}}
tag: "${{SEMVERSION_TAG}}"
when:
condition:
all:
executeForTag: "'${{SEMVERSION_TAG}}' != ''"

push_image_latest:
push_image_tag_to_dockerhub:
title: Push image with tag based semver tags
type: push
registry: dockerhub
candidate: ${{build_image}}
tag: "${{SEMVERSION_TAG}}"
when:
condition:
all:
executeForTag: "'${{SEMVERSION_TAG}}' != ''"


push_image_latest_to_cfcf:
title: Push image with latest tag
type: push
registry: cfcr
candidate: ${{build_image}}
tag: latest
when:
condition:
all:
executeForMasterBranch: "'${{CF_BRANCH}}' == 'master'"

push_image_latest_to_dockerhub:
title: Push image with latest tag
type: push
registry: dockerhub
candidate: ${{build_image}}
tag: latest
when:
Expand Down

0 comments on commit d614888

Please sign in to comment.