Skip to content

Commit

Permalink
fixed typo in readme & set original file dates before deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
monotek committed Jan 5, 2019
1 parent 5ab0d57 commit 71aa5aa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .circleci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ if [ "${CIRCLECI}" == 'true' ] && [ -z "${CIRCLE_PULL_REQUEST}" ]; then
# get chart version
CHART_VERSION="$(grep version: "${REPO_ROOT}"/"${CHART_DIR}"/Chart.yaml | sed 's/version: //')"

# set original file dates
(
cd "${REPO_ROOT}"/"${REPO_DIR}" || exit
while read -r FILE; do
ORG_FILE_TIME=$(git log --pretty=format:%cd -n 1 --date=iso "${FILE}")
echo "set original time ${ORG_FILE_TIME} to ${FILE}"
touch -d "${ORG_FILE_TIME}" -m "${FILE}"
done < <(git ls-files)
)

# build helm dependencies in subshell
(
cd "${REPO_ROOT}"/"${CHART_DIR}" || exit
Expand All @@ -29,6 +39,7 @@ if [ "${CIRCLECI}" == 'true' ] && [ -z "${CIRCLE_PULL_REQUEST}" ]; then
# build chart
helm package "${REPO_ROOT}"/"${CHART_DIR}" --destination "${REPO_ROOT}"/"${REPO_DIR}"

# build index
helm repo index --merge "${REPO_ROOT}"/"${REPO_DIR}"/index.yaml --url https://zammad.github.io "${REPO_ROOT}"/"${REPO_DIR}"

# push changes to github
Expand Down
2 changes: 1 addition & 1 deletion zammad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: zammad
version: 0.1.5
version: 0.1.6
appVersion: 2.8.0
description: Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and e-mails.
home: https://zammad.org
Expand Down
2 changes: 1 addition & 1 deletion zammad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following table lists the configurable parameters of the zammad chart and th
|-----------------------------------|------------------------------------------|-------------------------------------|
| `useElasticsearch` | use Elasticsearch dependcy | `true` |
| `useMemcached` | use Memcached dependency | `true` |
| `usePostgresql | use PostgreSQL dependency | `true` |
| `usePostgresql` | use PostgreSQL dependency | `true` |
| `image.repository` | Container image to use | `zammad/zammad-docker-compose` |
| `image.tag` | Container image tag to deploy | `2.8.0-21` |
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
Expand Down

0 comments on commit 71aa5aa

Please sign in to comment.