Skip to content

Commit

Permalink
docker hub publish: master as "latest" release tags as themselves
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Nov 16, 2019
1 parent 03ce3d5 commit 2914b69
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ modules/orm
# Docker Deployment Specifics
*.aes
deployment.env
docker.env
vault.txt
5 changes: 5 additions & 0 deletions codeship-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,8 @@ awscli:
- .:/vols/src
encrypted_env_file: deployment.env.encrypted
cached: true

dockercfggen:
image: codeship/dockercfg-generator
add_docker: true
encrypted_env_file: docker.env.encrypted
22 changes: 22 additions & 0 deletions codeship-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,25 @@
- name: "Deployment director"
service: deploy
command: ush-deployment-director.sh


# Publish images to docker hub
- name: "Docker Hub upload"
type: parallel
steps:
- tag: master
name: "Upload latest tag"
service: dockerimg
type: push
image_name: ushahidi/platform
image_tag: latest
registry: https://index.docker.io/v1/
dockercfg_service: dockercfggen
- tag: '^v(\d+\.)+\d+'
name: "Upload release tag"
service: dockerimg
type: push
image_name: ushahidi/platform
image_tag: "{{.Branch}}"
registry: https://index.docker.io/v1/
dockercfg_service: dockercfggen
2 changes: 2 additions & 0 deletions docker.env.encrypted
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codeship:v2
isdejOJdkjObFQnA5/INMN/So76xiguxRAOAyXo3hHXFCBzHOyq6pDNV7yFPLmmiIrDk3ZMajuNU72baxbQOGCEX2XELnmvzKT/NeX4Ssgi5wiy/hJdxLbN0wOAE8lfm4KIIphdu6IYP0Nzad2J1QhGRt8T49HWrATeXvrJawAXg1835EM8xjwxZ/2oD42G6dnHXGwHrra/0hvCCRwkN1fyrfNTUpg==

0 comments on commit 2914b69

Please sign in to comment.