Update version & add manage_docker option

This commit is contained in:
sonny 2024-08-05 19:31:18 +02:00
parent ab7c91f637
commit a4befd5ef8
3 changed files with 7 additions and 5 deletions

View file

@ -28,6 +28,7 @@
state: absent
environment:
GITLAB_HOME: '{{ gitlab_home }}'
when: manage_docker is true
- name: start gitlab
docker_compose:
@ -35,5 +36,4 @@
project_src: '{{ app_dir }}'
environment:
GITLAB_HOME: '{{ gitlab_home }}'
# TODO: update router config (for SSH)
when: manage_docker is true

View file

@ -2,7 +2,7 @@ version: '3.6'
services:
web:
image: 'gitlab/gitlab-ee:{{ image_tag }}'
restart: always
restart: unless-stopped
hostname: '{{ hostname }}'
environment:
GITLAB_OMNIBUS_CONFIG: |
@ -31,6 +31,7 @@ services:
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
runner:
# does not have an upgrade path, see https://forum.gitlab.com/t/upgrade-path-for-runner/72130
image: 'gitlab/gitlab-runner:{{ runner_image_tag }}'
restart: unless-stopped
environment:

View file

@ -1,7 +1,8 @@
hostname: 'git.fudiggity.nl'
image_tag: '16.1.0-ee.0'
runner_image_tag: 'alpine3.18-v16.1.0'
manage_docker: false
image_tag: '17.2.1-ee.0'
runner_image_tag: 'alpine3.19-v17.1.1'
app_dir: '/srv/docker/gitlab'
gitlab_home: '{{ ansible_env.HOME }}/vm/gitlab'