Update ansible task for data.coop website with new branches and docker images

This commit is contained in:
Benjamin Bach 2023-07-25 22:17:35 +02:00
parent 9126fd8d61
commit 4d09c1ec11
No known key found for this signature in database
GPG key ID: 486F0D69C845416E
3 changed files with 16 additions and 19 deletions

View file

@ -129,11 +129,9 @@ services:
domains: domains:
- "{{ base_domain }}" - "{{ base_domain }}"
- "www.{{ base_domain }}" - "www.{{ base_domain }}"
version: stable
new_data_coop_website: staging_domain: "staging.{{ base_domain }}"
file: websites/new.data.coop.yml staging_version: stable
domain: "new.{{ base_domain }}"
version: hugo
slides_2022_website: slides_2022_website:
file: websites/2022.slides.data.coop.yml file: websites/2022.slides.data.coop.yml

View file

@ -13,7 +13,7 @@
- name: setup data.coop website docker container - name: setup data.coop website docker container
docker_container: docker_container:
name: data.coop_website name: data.coop_website
image: docker.data.coop/data-coop-website image: docker.data.coop/data-coop-website:{{ services.data_coop_website.version }}
restart_policy: unless-stopped restart_policy: unless-stopped
networks: networks:
- name: external_services - name: external_services
@ -21,3 +21,15 @@
VIRTUAL_HOST : "{{ services.data_coop_website.domains|join(',') }}" VIRTUAL_HOST : "{{ services.data_coop_website.domains|join(',') }}"
LETSENCRYPT_HOST: "{{ services.data_coop_website.domains|join(',') }}" LETSENCRYPT_HOST: "{{ services.data_coop_website.domains|join(',') }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}" LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"
- name: setup staging data.coop website using hugo
docker_container:
name: staging.data.coop_website
image: docker.data.coop/data-coop-website:{{ services.data_coop_website.staging_version }}
restart_policy: unless-stopped
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ services.data_coop_website.staging_domain }}"
LETSENCRYPT_HOST: "{{ services.data_coop_website.staging_domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"

View file

@ -1,13 +0,0 @@
# vim: ft=yaml.ansible
---
- name: setup new data.coop website using hugo
docker_container:
name: new.data.coop_website
image: docker.data.coop/data-coop-website:{{ services.new_data_coop_website.version }}
restart_policy: unless-stopped
networks:
- name: external_services
env:
VIRTUAL_HOST : "{{ services.new_data_coop_website.domain }}"
LETSENCRYPT_HOST: "{{ services.new_data_coop_website.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"