Upgrade to 23.6.2
This commit is contained in:
parent
f3f4733241
commit
8c59dc3069
3 changed files with 35 additions and 31 deletions
|
|
@ -34,32 +34,34 @@
|
|||
- { src: 'templates/sentry.conf.j2', dest: '{{ app_dir }}/sentry/sentry.conf.py' }
|
||||
- { src: 'templates/sentry.config.j2', dest: '{{ app_dir }}/sentry/config.yml' }
|
||||
|
||||
- name: stop running containers
|
||||
docker_compose:
|
||||
project_src: '{{ app_dir }}'
|
||||
env_file: '{{ app_dir }}/.env'
|
||||
state: absent
|
||||
|
||||
# Note: run `docker-compose run --rm web export > backup.json` before upgrading
|
||||
# TODO: tag other sentry images aswell
|
||||
# can be ran multiple times to upgrade sentry
|
||||
- name: run sentry installer
|
||||
command: './install.sh'
|
||||
args:
|
||||
chdir: '{{ app_dir }}'
|
||||
environment:
|
||||
SENTRY_IMAGE: 'getsentry/sentry:{{ app_branch }}'
|
||||
SENTRY_BIND: '{{ bind_address }}'
|
||||
REPORT_SELF_HOSTED_ISSUES: 0
|
||||
register: installer_output
|
||||
|
||||
- name: log installer output
|
||||
debug:
|
||||
var: installer_output.stdout_lines
|
||||
|
||||
- name: start sentry
|
||||
docker_compose:
|
||||
project_src: '{{ app_dir }}'
|
||||
# Note: docker-compose versions <=1.28 load the env file from the current working
|
||||
# directory of the docker-compose command rather than project_src.
|
||||
env_file: '{{ app_dir }}/.env'
|
||||
- block:
|
||||
- name: stop running containers
|
||||
docker_compose:
|
||||
project_src: '{{ app_dir }}'
|
||||
env_file: '{{ app_dir }}/.env'
|
||||
state: absent
|
||||
|
||||
# Note: run `docker-compose run --rm web export > backup.json` before upgrading
|
||||
# TODO: tag other sentry images aswell
|
||||
# can be ran multiple times to upgrade sentry
|
||||
- name: run sentry installer
|
||||
command: './install.sh'
|
||||
args:
|
||||
chdir: '{{ app_dir }}'
|
||||
environment:
|
||||
SENTRY_IMAGE: 'getsentry/sentry:{{ app_branch }}'
|
||||
SENTRY_BIND: '{{ bind_address }}'
|
||||
REPORT_SELF_HOSTED_ISSUES: 0
|
||||
register: installer_output
|
||||
|
||||
- name: log installer output
|
||||
debug:
|
||||
var: installer_output.stdout_lines
|
||||
|
||||
- name: start sentry
|
||||
docker_compose:
|
||||
project_src: '{{ app_dir }}'
|
||||
# Note: docker-compose versions <=1.28 load the env file from the current working
|
||||
# directory of the docker-compose command rather than project_src.
|
||||
env_file: '{{ app_dir }}/.env'
|
||||
when: manage_docker is true
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
# This file is just Python, with a touch of Django which means
|
||||
# you can inherit and tweak settings to your hearts content.
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
# Can either use a port number or an IP:PORT combo, see SENTRY_BIND
|
||||
bind_address: '9000'
|
||||
|
||||
manage_docker: false
|
||||
|
||||
app_name: 'sentry'
|
||||
app_dir: '/srv/docker/sentry'
|
||||
app_url: 'https://sentry.fudiggity.nl'
|
||||
app_repository: 'https://github.com/getsentry/onpremise.git'
|
||||
app_branch: '23.2.0'
|
||||
app_branch: '23.6.2'
|
||||
|
||||
app_user: 'sonny'
|
||||
app_key: !vault |
|
||||
|
|
|
|||
Reference in a new issue