diff --git a/tasks.yml b/tasks.yml index 38ffb28..e61d2bb 100644 --- a/tasks.yml +++ b/tasks.yml @@ -20,7 +20,7 @@ git: repo: '{{ app_repository }}' dest: '{{ app_dir }}' - version: '{{ app_branch }}' + version: '{{ app_ref }}' update: true - name: copy .production.env @@ -33,6 +33,8 @@ project_src: '{{ app_dir }}' state: absent +# TODO: recreate static volume + - name: start newsreader docker_compose: build: true diff --git a/templates/env.j2 b/templates/env.j2 index 39bcf11..fcaf939 100644 --- a/templates/env.j2 +++ b/templates/env.j2 @@ -26,5 +26,7 @@ TWITTER_CONSUMER_ID='{{ twitter_client_id }}' TWITTER_CONSUMER_SECRET='{{ twitter_client_secret }}' TWITTER_REDIRECT_URL='{{ twitter_redirect_url }}' +VERSION='{{ app_ref }}' + SENTRY_DSN='{{ sentry_dsn }}' ADMINS='{{ admins }}' diff --git a/vars/app.yml b/vars/app.yml index 0dc6d8d..b4f792a 100644 --- a/vars/app.yml +++ b/vars/app.yml @@ -1,6 +1,6 @@ app_name: 'newsreader' app_repository: 'https://git.fudiggity.nl/sonny/newsreader' -app_branch: '0.4.3' +app_ref: '0.5.0' app_dir: '/srv/docker/newsreader' django_settings_module: 'newsreader.conf.production'