Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Angamanga authored Apr 21, 2020
2 parents 110d476 + 0fb682e commit 7be8477
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ server/www/locales/
*.swo
buildargs.env
deployment.env
docker.env
vault.txt
*.swo
*.swp
Expand All @@ -23,4 +24,4 @@ server/www/img/icons/
server/www/
app/locales/
package-lock.json
app/stats.html
app/stats.html
5 changes: 5 additions & 0 deletions codeship-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,8 @@ test:
- TEST_SUITE=unit
cached: true
default_cache_branch: develop

dockercfggen:
image: codeship/dockercfg-generator
add_docker: true
encrypted_env_file: docker.env.encrypted
23 changes: 21 additions & 2 deletions codeship-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,27 @@
service: release
command: release
tag: '^v[0-9]\.[0-9]+.[0-9]+([\-a-zA-Z0-9\.]+)?$'


- name: "Deployment director"
service: deploy
command: CI_NAME=codeship 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-client
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-client
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
CB3n+FyxdRS8Za5VdpyiyNnyP9Io1Yj0NKWf6LDrN7/GOo/0ACbNhWjJvKCXTfFiR38XGXrxFGv85yg+FirQeXYjKRpZs8dReWAZKDXrzGl2UL4p82yUJSVDPKMwyEgVANVzrYi8uAAEEjzKv+ocRITTqp5JS2rjMIkb7KifzvMJgQsUO7iBcCiK3giyUF3QpmsSgB2nomwhf7JBDppzIC/xXF8A/g==

0 comments on commit 7be8477

Please sign in to comment.